From 5d37a99a017d9f7bc819e6255ee319a29cda59a3 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Mon, 19 Nov 2012 23:12:00 +0000 Subject: [PATCH] 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 --- toolchain/gcc/common.mk | 1 + 1 file changed, 1 insertion(+) 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)"