From: Florian Fainelli Date: Mon, 19 Nov 2012 23:12:00 +0000 (+0000) Subject: gcc: build with HOST_CFLAGS X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5d37a99a017d9f7bc819e6255ee319a29cda59a3;p=openwrt%2Fstaging%2Fansuel.git 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 SVN-Revision: 34266 --- diff --git a/toolchain/gcc/common.mk b/toolchain/gcc/common.mk index 6e4c61214b..924ed90a63 100644 --- 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)"