From 9a62705dcce33472d1442ddc73d5b7c2a0d104f7 Mon Sep 17 00:00:00 2001 From: florian Date: Mon, 19 Nov 2012 23:12:00 +0000 Subject: [toolchain] 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 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34266 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- toolchain/gcc/common.mk | 1 + 1 file changed, 1 insertion(+) (limited to 'toolchain') diff --git a/toolchain/gcc/common.mk b/toolchain/gcc/common.mk index 6e4c61214..924ed90a6 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)" -- cgit v1.2.3