svn commit: trunk/busybox
landley at busybox.net
landley at busybox.net
Tue Jun 13 16:17:16 UTC 2006
Author: landley
Date: 2006-06-13 09:17:16 -0700 (Tue, 13 Jun 2006)
New Revision: 15371
Log:
Use -ffunction-sections -fdata-sections --gc-sections if the compiler supports
it. If nothing else, this gives us better granularity in bloatcheck.
Modified:
trunk/busybox/Rules.mak
Changeset:
Modified: trunk/busybox/Rules.mak
===================================================================
--- trunk/busybox/Rules.mak 2006-06-13 16:09:16 UTC (rev 15370)
+++ trunk/busybox/Rules.mak 2006-06-13 16:17:16 UTC (rev 15371)
@@ -253,6 +253,7 @@
endif # gcc-4.1 and beyond
endif
OPTIMIZATION+=$(call check_cc,$(CC),-fomit-frame-pointer,)
+OPTIMIZATION+=$(call check_cc,$(CC),-ffunction-sections -fdata-sections,)
#
#--------------------------------------------------------
@@ -284,6 +285,7 @@
else
CFLAGS +=-DNDEBUG
CHECKED_LDFLAGS += $(call check_ld,$(LD),--sort-common,)
+ CHECKED_LDFLAGS += $(call check_ld,--gc-sections,)
endif
ifneq ($(strip $(CONFIG_DEBUG_PESSIMIZE)),y)
More information about the busybox-cvs
mailing list