svn commit: trunk/busybox

vapier at busybox.net vapier at busybox.net
Fri Mar 10 23:20:52 UTC 2006


Author: vapier
Date: 2006-03-10 15:20:48 -0800 (Fri, 10 Mar 2006)
New Revision: 14517

Log:
add a sep option for stripping

Modified:
   trunk/busybox/Config.in
   trunk/busybox/Rules.mak


Changeset:
Modified: trunk/busybox/Config.in
===================================================================
--- trunk/busybox/Config.in	2006-03-10 23:17:17 UTC (rev 14516)
+++ trunk/busybox/Config.in	2006-03-10 23:20:48 UTC (rev 14517)
@@ -318,6 +318,13 @@
 
 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

Modified: trunk/busybox/Rules.mak
===================================================================
--- trunk/busybox/Rules.mak	2006-03-10 23:17:17 UTC (rev 14516)
+++ trunk/busybox/Rules.mak	2006-03-10 23:20:48 UTC (rev 14517)
@@ -238,10 +238,13 @@
 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,))




More information about the busybox-cvs mailing list