aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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