summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2011-03-21 14:00:28 +0100
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2011-03-21 14:03:57 +0100
commit1ed2342c1e33c28ad048205c4a708fe7b39bfb17 (patch)
tree93d13030c5b3f0c722dbc636b007884933bbed4a
parent87ec325107b37dcdec0b83fb8a0629d5242dcc6c (diff)
stripping on linking on linux unless SYMBOLS or DEBUG have been requested
-rwxr-xr-xsolenv/gbuild/platform/linux.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/solenv/gbuild/platform/linux.mk b/solenv/gbuild/platform/linux.mk
index 3a708b7a8..125152358 100755
--- a/solenv/gbuild/platform/linux.mk
+++ b/solenv/gbuild/platform/linux.mk
@@ -141,6 +141,12 @@ gb_LinkTarget_LDFLAGS += \
endif
+ifneq ($(gb_SYMBOL),$(true))
+gb_LinkTarget_LDFLAGS += \
+ -Wl,--strip-all \
+
+endif
+
ifeq ($(gb_DEBUGLEVEL),2)
gb_COMPILEROPTFLAGS := -O0
else