Browse Source

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 <[email protected]>

SVN-Revision: 34266
Florian Fainelli 13 years ago
parent
commit
5d37a99a01
1 changed files with 1 additions and 0 deletions
  1. 1 0
      toolchain/gcc/common.mk

+ 1 - 0
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)"