From aeaec5602941ec466d0ffa7df15bf566117bd0c2 Mon Sep 17 00:00:00 2001 From: landley Date: Wed, 30 Aug 2006 16:50:00 +0000 Subject: Bernhard Fischer complained about moving --sort-common. git-svn-id: svn://busybox.net/trunk/busybox@16018 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- Rules.mak | 4 ++-- 1 file 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 -- cgit v1.2.3-55-g6feb