diff options
Diffstat (limited to 'solenv/gbuild/LinkTarget.mk')
-rw-r--r-- | solenv/gbuild/LinkTarget.mk | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/solenv/gbuild/LinkTarget.mk b/solenv/gbuild/LinkTarget.mk index 325a37d0ee5b..69683c58f74b 100644 --- a/solenv/gbuild/LinkTarget.mk +++ b/solenv/gbuild/LinkTarget.mk @@ -44,8 +44,10 @@ CXXFLAGS ?= $(gb_COMPILEROPTFLAGS) OBJCXXFLAGS ?= $(gb_COMPILEROPTFLAGS) endif -# if enabled we can create one library instead of more smaller -ifeq ($(MERGELIBS),YES) +# if enabled we link all of these libraries into one larger, merged library +# for which we can do a lot more optimisation, and which is faster to read +# from disk. +ifeq ($(MERGELIBS),TRUE) # list of libraries which are always loaded, thus we can merge them into one # they have to be from tail_build, so we could link against merged library gb_CORE_LIBS := \ @@ -733,7 +735,7 @@ $$(eval $$(call gb_Output_info,currently known libraries are: $(sort $(gb_Librar $$(eval $$(call gb_Output_error,Cannot link against library/libraries $$(filter-out $(gb_Library_KNOWNLIBS),$(2)). Libraries must be registered in Repository.mk)) endif -ifeq ($(MERGELIBS),YES) +ifeq ($(MERGELIBS),TRUE) gb_LINKED_LIBS := $(if $(filter $(gb_CORE_LIBS),$(2)),merged $(filter-out $(gb_CORE_LIBS),$(2)),$(2)) else gb_LINKED_LIBS := $(2) |