From 6395fa892c314b1cb8ac32ae5318dd9d21596d3c Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Sat, 10 Jun 2017 11:36:03 +0000 Subject: [PATCH] lo.mk: Make OTHER_CPP default assignment a ?= Most notably, this allows to define OTHER_CPP to the empty string. Which effectively speeds up the build by not creating a local.a, and disabling symbol sharing in that directory by means of the library. With local.a, all other .so files have to be relinked and installed to BUILD_LIB_DIR after a change in a single source file. Signed-off-by: Jan Lindemann --- make/lo.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make/lo.mk b/make/lo.mk index e4ff0500..2bfe91d6 100644 --- a/make/lo.mk +++ b/make/lo.mk @@ -17,7 +17,7 @@ LOADABLE_OBJ_CPP = $(patsubst %,%.cpp,$(LOADABLE_OBJS)) LOADABLE_OBJS_O = $(patsubst %,%.o,$(LOADABLE_OBJS)) OTHER_CPP_IGNORE = $(patsubst %,$(CPP_PREFIX)%.cpp,$(LOADABLE_OBJ_IGNORE)) -OTHER_CPP = $(filter-out $(LOADABLE_OBJ_CPP) $(OTHER_CPP_IGNORE),$(wildcard *.cpp)) +OTHER_CPP ?= $(filter-out $(LOADABLE_OBJ_CPP) $(OTHER_CPP_IGNORE),$(wildcard *.cpp)) ifneq ($(OTHER_CPP),) OTHER_O = $(patsubst %.cpp,%.o,$(OTHER_CPP)) OTHER_LIB = liblocal.a