X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=blobdiff_plain;f=toolchain%2Fgcc%2Fcommon.mk;h=888cf7a1e5a8e846cc3dd95c2e421d42cb4d6637;hp=0f22e4102140e11b109b54d876315fc4fc0f9efc;hb=aaaf08b13256b5bc10504210992e79a45704afbd;hpb=65d0de3bea4ca7e36f95789c18f09e588c41e169 diff --git a/toolchain/gcc/common.mk b/toolchain/gcc/common.mk index 0f22e41021..888cf7a1e5 100644 --- a/toolchain/gcc/common.mk +++ b/toolchain/gcc/common.mk @@ -167,6 +167,10 @@ ifdef CONFIG_powerpc TARGET_CFLAGS := $(patsubst -Os,-O2,$(TARGET_CFLAGS)) endif +ifneq ($(GCC_ARCH),) + GCC_CONFIGURE+= --with-arch=$(GCC_ARCH) +endif + GCC_MAKE:= \ export SHELL="$(BASH)"; \ $(MAKE) $(TOOLCHAIN_JOBS) \