projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Jens Michaelsen pointed out that Linksys' firmware download side moved.
[oweals/busybox.git]
/
Rules.mak
diff --git
a/Rules.mak
b/Rules.mak
index 550fe19bf54353a7f9cdc7bd135ef29898b9fbd4..2f34bfbd202ff17874aac44185a41bf397ed9910 100644
(file)
--- a/
Rules.mak
+++ b/
Rules.mak
@@
-253,6
+253,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,)
endif # gcc-4.1 and beyond
endif
OPTIMIZATION+=$(call check_cc,$(CC),-fomit-frame-pointer,)
+OPTIMIZATION+=$(call check_cc,$(CC),-ffunction-sections -fdata-sections,)
#
#--------------------------------------------------------
#
#--------------------------------------------------------
@@
-284,6
+285,7
@@
ifeq ($(strip $(CONFIG_DEBUG)),y)
else
CFLAGS +=-DNDEBUG
CHECKED_LDFLAGS += $(call check_ld,$(LD),--sort-common,)
else
CFLAGS +=-DNDEBUG
CHECKED_LDFLAGS += $(call check_ld,$(LD),--sort-common,)
+ CHECKED_LDFLAGS += $(call check_ld,--gc-sections,)
endif
ifneq ($(strip $(CONFIG_DEBUG_PESSIMIZE)),y)
endif
ifneq ($(strip $(CONFIG_DEBUG_PESSIMIZE)),y)