From d0163ada559e371c6c22150aa8d0dc15e8a5ded5 Mon Sep 17 00:00:00 2001 From: Brad Campbell Date: Tue, 2 Apr 2024 16:46:22 -0400 Subject: [PATCH] make: TockLibrary: unconditionaly set build dir This fixes an issue when multiple Tock libraries are used in the same build. With `?=`, the value is "reset" for each instantiation of TockLibrary, causing the build directory for all libraries to be set to whichever library is included last. With `:=` this does not occur. --- TockLibrary.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TockLibrary.mk b/TockLibrary.mk index 237b3536f..0f1711fb6 100644 --- a/TockLibrary.mk +++ b/TockLibrary.mk @@ -27,7 +27,7 @@ ifeq ($(strip $($(LIBNAME)_SRCS)),) endif # directory for built output -$(LIBNAME)_BUILDDIR ?= $($(LIBNAME)_DIR)/build +$(LIBNAME)_BUILDDIR := $($(LIBNAME)_DIR)/build # Handle complex paths. #