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 <jan@janware.com>
This commit is contained in:
Jan Lindemann 2017-06-10 11:36:03 +00:00
commit 6395fa892c

View file

@ -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