projects
/
15.05
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b316ab4
)
[toolchain] gcc: build with HOST_CFLAGS
author
Florian Fainelli
<florian@openwrt.org>
Mon, 19 Nov 2012 23:12:00 +0000
(23:12 +0000)
committer
Florian Fainelli
<florian@openwrt.org>
Mon, 19 Nov 2012 23:12:00 +0000
(23:12 +0000)
Turns on -O2 optimization when building GCC thus making the cross-compiler a
little faster (about 25%).
Signed-off-by: Florian Fainelli <florian@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34266
3c298f89
-4303-0410-b956-
a3cf2f4a3e73
toolchain/gcc/common.mk
patch
|
blob
|
history
diff --git
a/toolchain/gcc/common.mk
b/toolchain/gcc/common.mk
index
6e4c612
..
924ed90
100644
(file)
--- a/
toolchain/gcc/common.mk
+++ b/
toolchain/gcc/common.mk
@@
-180,6
+180,7
@@
endif
GCC_MAKE:= \
export SHELL="$(BASH)"; \
$(MAKE) \
+ CFLAGS="$(HOST_CFLAGS)" \
CFLAGS_FOR_TARGET="$(TARGET_CFLAGS)" \
CXXFLAGS_FOR_TARGET="$(TARGET_CFLAGS)"