From e625d40062aabda7507fdec0fd0fe6ace1fe0476 Mon Sep 17 00:00:00 2001 From: falkTX Date: Wed, 10 May 2017 13:19:59 +0100 Subject: [PATCH] Add SKIP_STRIPPING Makefile option to disable stripping --- Makefile.mk | 5 ++++- dpf | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile.mk b/Makefile.mk index 8116b37..8d2d2a1 100644 --- a/Makefile.mk +++ b/Makefile.mk @@ -35,7 +35,10 @@ ifeq ($(MACOS),true) LINK_OPTS = -fdata-sections -ffunction-sections -Wl,-dead_strip -Wl,-dead_strip_dylibs else # 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 ifeq ($(RASPPI),true) diff --git a/dpf b/dpf index 4c35503..c3a3ee0 160000 --- a/dpf +++ b/dpf @@ -1 +1 @@ -Subproject commit 4c3550366de6f5fff6b7267d8eae94cff2fe8261 +Subproject commit c3a3ee004eb5427067488f425540ba54336e4d38