aboutsummaryrefslogtreecommitdiff
path: root/Rules.mak
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2006-08-30 16:50:00 +0000
committerRob Landley <rob@landley.net>2006-08-30 16:50:00 +0000
commitf5bbc692a0329ee34f1644ac42efa5e3a8c48296 (patch)
tree6a0404186ba6e3d99735dd93fd5ce726b5f22503 /Rules.mak
parent1fdd83f8979cff7875de53dfa3f99bd7d9ac838d (diff)
downloadbusybox-f5bbc692a0329ee34f1644ac42efa5e3a8c48296.tar.gz
Bernhard Fischer complained about moving --sort-common.
Diffstat (limited to 'Rules.mak')
-rw-r--r--Rules.mak4
1 files changed, 2 insertions, 2 deletions
diff --git a/Rules.mak b/Rules.mak
index e4ac81705..d8614e625 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -236,7 +236,7 @@ ifeq ($(strip $(shell [ $(CC_MAJOR) -ge 4 -a $(CC_MINOR) -ge 1 ] ; echo $$?)),0)
endif # gcc-4.1 and beyond
endif
OPTIMIZATION+=$(call check_cc,$(CC),-fomit-frame-pointer,)
-OPTIMIZATION+=$(call check_cc,$(CC),-ffunction-sections -fdata-sections,)
+CHECKED_LDFLAGS += $(call check_ld,$(LD),--sort-common,)
#
#--------------------------------------------------------
@@ -288,7 +288,7 @@ ifeq ($(strip $(CONFIG_STATIC)),y)
PROG_CFLAGS += $(call check_cc,$(CC),-static,)
else
ifneq ($(strip $(CONFIG_DEBUG)),y)
- CHECKED_LDFLAGS += $(call check_ld,$(LD),--sort-common,)
+ OPTIMIZATION+=$(call check_cc,$(CC),-ffunction-sections -fdata-sections,)
CHECKED_LDFLAGS += $(call check_ld,$(LD),--gc-sections,)
endif
endif