aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Rules.mak7
1 files changed, 5 insertions, 2 deletions
diff --git a/Rules.mak b/Rules.mak
index a99d42bef..e4ac81705 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -267,8 +267,6 @@ ifeq ($(strip $(CONFIG_DEBUG)),y)
267 CFLAGS +=-g 267 CFLAGS +=-g
268else 268else
269 CFLAGS +=-DNDEBUG 269 CFLAGS +=-DNDEBUG
270 CHECKED_LDFLAGS += $(call check_ld,$(LD),--sort-common,)
271 CHECKED_LDFLAGS += $(call check_ld,$(LD),--gc-sections,)
272endif 270endif
273 271
274ifneq ($(strip $(CONFIG_DEBUG_PESSIMIZE)),y) 272ifneq ($(strip $(CONFIG_DEBUG_PESSIMIZE)),y)
@@ -288,6 +286,11 @@ endif
288STRIPCMD:=$(call check_strip,$(STRIP),-s --remove-section=.note --remove-section=.comment,$(STRIP)) 286STRIPCMD:=$(call check_strip,$(STRIP),-s --remove-section=.note --remove-section=.comment,$(STRIP))
289ifeq ($(strip $(CONFIG_STATIC)),y) 287ifeq ($(strip $(CONFIG_STATIC)),y)
290 PROG_CFLAGS += $(call check_cc,$(CC),-static,) 288 PROG_CFLAGS += $(call check_cc,$(CC),-static,)
289else
290 ifneq ($(strip $(CONFIG_DEBUG)),y)
291 CHECKED_LDFLAGS += $(call check_ld,$(LD),--sort-common,)
292 CHECKED_LDFLAGS += $(call check_ld,$(LD),--gc-sections,)
293 endif
291endif 294endif
292CFLAGS_SHARED := $(call check_cc,$(CC),-shared,) 295CFLAGS_SHARED := $(call check_cc,$(CC),-shared,)
293LIB_CFLAGS+=$(CFLAGS_SHARED) 296LIB_CFLAGS+=$(CFLAGS_SHARED)