Add SKIP_STRIPPING Makefile option to disable stripping of binaries
This commit is contained in:
parent
7a01d898bf
commit
73c2a81c68
|
@ -35,7 +35,10 @@ ifeq ($(MACOS),true)
|
||||||
LINK_OPTS = -fdata-sections -ffunction-sections -Wl,-dead_strip -Wl,-dead_strip_dylibs
|
LINK_OPTS = -fdata-sections -ffunction-sections -Wl,-dead_strip -Wl,-dead_strip_dylibs
|
||||||
else
|
else
|
||||||
# Common linker flags
|
# Common linker flags
|
||||||
LINK_OPTS = -fdata-sections -ffunction-sections -Wl,--gc-sections -Wl,-O1 -Wl,--as-needed -Wl,--strip-all
|
LINK_OPTS = -fdata-sections -ffunction-sections -Wl,--gc-sections -Wl,-O1 -Wl,--as-needed
|
||||||
|
ifneq ($(SKIP_STRIPPING),true)
|
||||||
|
LINK_OPTS += -Wl,--strip-all
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(RASPPI),true)
|
ifeq ($(RASPPI),true)
|
||||||
|
|
Loading…
Reference in New Issue