mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2025-02-03 05:12:51 +00:00
gcc: build with HOST_CFLAGS
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> SVN-Revision: 34266
This commit is contained in:
parent
cf440ae716
commit
5d37a99a01
@ -180,6 +180,7 @@ endif
|
|||||||
GCC_MAKE:= \
|
GCC_MAKE:= \
|
||||||
export SHELL="$(BASH)"; \
|
export SHELL="$(BASH)"; \
|
||||||
$(MAKE) \
|
$(MAKE) \
|
||||||
|
CFLAGS="$(HOST_CFLAGS)" \
|
||||||
CFLAGS_FOR_TARGET="$(TARGET_CFLAGS)" \
|
CFLAGS_FOR_TARGET="$(TARGET_CFLAGS)" \
|
||||||
CXXFLAGS_FOR_TARGET="$(TARGET_CFLAGS)"
|
CXXFLAGS_FOR_TARGET="$(TARGET_CFLAGS)"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user