add a sep option for stripping
authorMike Frysinger <vapier@gentoo.org>
Fri, 10 Mar 2006 23:20:48 +0000 (23:20 -0000)
committerMike Frysinger <vapier@gentoo.org>
Fri, 10 Mar 2006 23:20:48 +0000 (23:20 -0000)
Config.in
Rules.mak

index f8a0399155c0de1e1ba79224e73bd699df402de1..6c9e0c5de84655c66998b5deff22f792b6c4696d 100644 (file)
--- a/Config.in
+++ b/Config.in
@@ -318,6 +318,13 @@ config CONFIG_EFENCE
 
 endchoice
 
+config CONFIG_STRIP_BINARIES
+       bool "Strip busybox objects"
+       default y if !CONFIG_DEBUG
+       default n if CONFIG_DEBUG
+       help
+         Whether or not we strip the busybox binary and such.
+
 config CONFIG_DEBUG_YANK_SUSv2
        bool "Disable obsolete features removed before SUSv3?"
        default y
index 77435e3bd85fa6701a6246dcfb3bd2f598de71b9..031b41ee5b5d609e50b2faf8f1b4adc904e3a1a4 100644 (file)
--- 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,))