aboutsummaryrefslogtreecommitdiff
path: root/Rules.mak
diff options
context:
space:
mode:
authorGravatar Mike Frysinger <vapier@gentoo.org>2006-03-10 23:20:48 +0000
committerGravatar Mike Frysinger <vapier@gentoo.org>2006-03-10 23:20:48 +0000
commitc70240cc1d80a9fdf468258f06af315c16d75168 (patch)
treea8a958f094706e385189bd35c9362353945aaa2b /Rules.mak
parent72d59dbd768f92ad3ce4723b30b490dbe29fbaba (diff)
downloadbusybox-c70240cc1d80a9fdf468258f06af315c16d75168.tar.gz
busybox-c70240cc1d80a9fdf468258f06af315c16d75168.tar.bz2
add a sep option for stripping
Diffstat (limited to 'Rules.mak')
-rw-r--r--Rules.mak5
1 files changed, 4 insertions, 1 deletions
diff --git a/Rules.mak b/Rules.mak
index 77435e3bd..031b41ee5 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -238,10 +238,13 @@ endif
LDFLAGS+=$(if $(call is_eq,$(CONFIG_DEBUG),y),$(call check_ld,LDFLAGS,--warn-common,)$(call check_ld,LDFLAGS,--sort-common,))
ifeq ($(CONFIG_DEBUG),y)
CFLAGS +=$(WARNINGS) -g -D_GNU_SOURCE
- STRIPCMD:=/bin/true -Not_stripping_since_we_are_debugging
else
CFLAGS+=$(WARNINGS) $(OPTIMIZATIONS) -D_GNU_SOURCE -DNDEBUG
+endif
+ifeq ($(CONFIG_STRIP_BINARIES),y)
STRIPCMD:=$(STRIP) -s --remove-section=.note --remove-section=.comment
+else
+ STRIPCMD:=/bin/true -Not_stripping_since_we_are_debugging
endif
PROG_CFLAGS+=$(if $(call is_eq,$(CONFIG_STATIC),y),\
$(call check_gcc,PROG_CFLAGS,-static,))