From: Rob Landley Date: Wed, 30 Aug 2006 16:50:00 +0000 (-0000) Subject: Bernhard Fischer complained about moving --sort-common. X-Git-Tag: 1_4_0~776 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f5bbc692a0329ee34f1644ac42efa5e3a8c48296;p=platform%2Fupstream%2Fbusybox.git Bernhard Fischer complained about moving --sort-common. --- diff --git a/Rules.mak b/Rules.mak index e4ac817..d8614e6 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