From dcdcc53e25fce09be486d4ea700f8a72895a1e69 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 6 Sep 2011 09:39:07 +0200 Subject: Honor --disable-strip in gbuild. --- solenv/gbuild/gbuild.mk | 6 ++++++ solenv/gbuild/platform/unxgcc.mk | 8 +++++--- 2 files changed, 11 insertions(+), 3 deletions(-) (limited to 'solenv') diff --git a/solenv/gbuild/gbuild.mk b/solenv/gbuild/gbuild.mk index 48bebebb57e3..329eefaf1639 100644 --- a/solenv/gbuild/gbuild.mk +++ b/solenv/gbuild/gbuild.mk @@ -87,6 +87,12 @@ else gb_SYMBOL := $(false) endif +ifeq ($(strip $(DISABLE_STRIP)$(disable_strip)),) +gb_STRIP := $(true) +else +gb_STRIP := $(false) +endif + gb_DEBUGLEVEL := 0 ifneq ($(strip $(DEBUG)$(debug)),) gb_DEBUGLEVEL := 1 diff --git a/solenv/gbuild/platform/unxgcc.mk b/solenv/gbuild/platform/unxgcc.mk index 4234c7125012..5c71bd44989e 100644 --- a/solenv/gbuild/platform/unxgcc.mk +++ b/solenv/gbuild/platform/unxgcc.mk @@ -163,9 +163,11 @@ gb_LinkTarget_LDFLAGS += \ endif ifneq ($(gb_SYMBOL),$(true)) -gb_LinkTarget_LDFLAGS += \ - -Wl,--strip-all \ - +ifeq ($(gb_STRIP),$(true)) +gb_LinkTarget_LDFLAGS += -Wl,--strip-all +else +gb_LinkTarget_LDFLAGS += -Wl,--strip-debug +endif endif ifneq ($(gb_DEBUGLEVEL),0) -- cgit