aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-08-30 16:50:00 +0000
committerlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-08-30 16:50:00 +0000
commitaeaec5602941ec466d0ffa7df15bf566117bd0c2 (patch)
tree6a0404186ba6e3d99735dd93fd5ce726b5f22503
parent68886fea59057fc1ae9850968081d8a10750407e (diff)
downloadbusybox-w32-aeaec5602941ec466d0ffa7df15bf566117bd0c2.tar.gz
busybox-w32-aeaec5602941ec466d0ffa7df15bf566117bd0c2.tar.bz2
busybox-w32-aeaec5602941ec466d0ffa7df15bf566117bd0c2.zip
Bernhard Fischer complained about moving --sort-common.
git-svn-id: svn://busybox.net/trunk/busybox@16018 69ca8d6d-28ef-0310-b511-8ec308f3f277
-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)
236endif # gcc-4.1 and beyond 236endif # gcc-4.1 and beyond
237endif 237endif
238OPTIMIZATION+=$(call check_cc,$(CC),-fomit-frame-pointer,) 238OPTIMIZATION+=$(call check_cc,$(CC),-fomit-frame-pointer,)
239OPTIMIZATION+=$(call check_cc,$(CC),-ffunction-sections -fdata-sections,) 239CHECKED_LDFLAGS += $(call check_ld,$(LD),--sort-common,)
240 240
241# 241#
242#-------------------------------------------------------- 242#--------------------------------------------------------
@@ -288,7 +288,7 @@ ifeq ($(strip $(CONFIG_STATIC)),y)
288 PROG_CFLAGS += $(call check_cc,$(CC),-static,) 288 PROG_CFLAGS += $(call check_cc,$(CC),-static,)
289else 289else
290 ifneq ($(strip $(CONFIG_DEBUG)),y) 290 ifneq ($(strip $(CONFIG_DEBUG)),y)
291 CHECKED_LDFLAGS += $(call check_ld,$(LD),--sort-common,) 291 OPTIMIZATION+=$(call check_cc,$(CC),-ffunction-sections -fdata-sections,)
292 CHECKED_LDFLAGS += $(call check_ld,$(LD),--gc-sections,) 292 CHECKED_LDFLAGS += $(call check_ld,$(LD),--gc-sections,)
293 endif 293 endif
294endif 294endif