aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-03-10 23:20:48 +0000
committerMike Frysinger <vapier@gentoo.org>2006-03-10 23:20:48 +0000
commitc70240cc1d80a9fdf468258f06af315c16d75168 (patch)
treea8a958f094706e385189bd35c9362353945aaa2b
parent72d59dbd768f92ad3ce4723b30b490dbe29fbaba (diff)
downloadbusybox-w32-c70240cc1d80a9fdf468258f06af315c16d75168.tar.gz
busybox-w32-c70240cc1d80a9fdf468258f06af315c16d75168.tar.bz2
busybox-w32-c70240cc1d80a9fdf468258f06af315c16d75168.zip
add a sep option for stripping
-rw-r--r--Config.in7
-rw-r--r--Rules.mak5
2 files changed, 11 insertions, 1 deletions
diff --git a/Config.in b/Config.in
index f8a039915..6c9e0c5de 100644
--- a/Config.in
+++ b/Config.in
@@ -318,6 +318,13 @@ config CONFIG_EFENCE
318 318
319endchoice 319endchoice
320 320
321config CONFIG_STRIP_BINARIES
322 bool "Strip busybox objects"
323 default y if !CONFIG_DEBUG
324 default n if CONFIG_DEBUG
325 help
326 Whether or not we strip the busybox binary and such.
327
321config CONFIG_DEBUG_YANK_SUSv2 328config CONFIG_DEBUG_YANK_SUSv2
322 bool "Disable obsolete features removed before SUSv3?" 329 bool "Disable obsolete features removed before SUSv3?"
323 default y 330 default y
diff --git a/Rules.mak b/Rules.mak
index 77435e3bd..031b41ee5 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -238,10 +238,13 @@ endif
238LDFLAGS+=$(if $(call is_eq,$(CONFIG_DEBUG),y),$(call check_ld,LDFLAGS,--warn-common,)$(call check_ld,LDFLAGS,--sort-common,)) 238LDFLAGS+=$(if $(call is_eq,$(CONFIG_DEBUG),y),$(call check_ld,LDFLAGS,--warn-common,)$(call check_ld,LDFLAGS,--sort-common,))
239ifeq ($(CONFIG_DEBUG),y) 239ifeq ($(CONFIG_DEBUG),y)
240 CFLAGS +=$(WARNINGS) -g -D_GNU_SOURCE 240 CFLAGS +=$(WARNINGS) -g -D_GNU_SOURCE
241 STRIPCMD:=/bin/true -Not_stripping_since_we_are_debugging
242else 241else
243 CFLAGS+=$(WARNINGS) $(OPTIMIZATIONS) -D_GNU_SOURCE -DNDEBUG 242 CFLAGS+=$(WARNINGS) $(OPTIMIZATIONS) -D_GNU_SOURCE -DNDEBUG
243endif
244ifeq ($(CONFIG_STRIP_BINARIES),y)
244 STRIPCMD:=$(STRIP) -s --remove-section=.note --remove-section=.comment 245 STRIPCMD:=$(STRIP) -s --remove-section=.note --remove-section=.comment
246else
247 STRIPCMD:=/bin/true -Not_stripping_since_we_are_debugging
245endif 248endif
246PROG_CFLAGS+=$(if $(call is_eq,$(CONFIG_STATIC),y),\ 249PROG_CFLAGS+=$(if $(call is_eq,$(CONFIG_STATIC),y),\
247 $(call check_gcc,PROG_CFLAGS,-static,)) 250 $(call check_gcc,PROG_CFLAGS,-static,))