[make] default WITH_LINKER_GC to false at the place it is used
Also switch the test logic to the TOBOOL macro.
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
# use linker garbage collection, if requested
|
||||
ifeq ($(WITH_LINKER_GC),1)
|
||||
WITH_LINKER_GC ?= false
|
||||
ifeq (true,$(call TOBOOL,$(WITH_LINKER_GC)))
|
||||
GLOBAL_COMPILEFLAGS += -ffunction-sections -fdata-sections
|
||||
GLOBAL_LDFLAGS += --gc-sections
|
||||
GLOBAL_DEFINES += LINKER_GC=1
|
||||
endif
|
||||
|
||||
ifneq (,$(EXTRA_BUILDRULES))
|
||||
|
||||
Reference in New Issue
Block a user