From baa55aab18d9b05529b5286e91911e0e9777d9b1 Mon Sep 17 00:00:00 2001 From: falkTX Date: Wed, 10 May 2017 13:11:47 +0100 Subject: [PATCH] Add SKIP_STRIPPING Makefile option to disable stripping --- Makefile.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile.mk b/Makefile.mk index 9100500..6759e24 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)