Merge pull request #5 from simonvanderveldt/allow-disabling-stripping

Add SKIP_STRIPPING option to Makefile to allow disabling stripping of binaries
This commit is contained in:
Filipe Coelho 2017-05-10 13:10:22 +01:00 committed by GitHub
commit 085172b25a
1 changed files with 4 additions and 1 deletions

View File

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