[PATCH] Honor --disable-strip in gbuild.
Stephan Bergmann
sbergman at redhat.com
Tue Sep 6 00:39:07 PDT 2011
---
solenv/gbuild/gbuild.mk | 6 ++++++
solenv/gbuild/platform/unxgcc.mk | 8 +++++---
2 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/solenv/gbuild/gbuild.mk b/solenv/gbuild/gbuild.mk
index 48bebeb..329eefa 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 4234c71..5c71bd4 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)
--
1.7.6
--------------000707040109050100040105--
More information about the LibreOffice
mailing list