X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/1a463bb48e486f96313801119e21f81f1ca21c8b..59f0b5d7218274f52c546fbf61d3e6c30472632d:/toolchain/gcc/common.mk diff --git a/toolchain/gcc/common.mk b/toolchain/gcc/common.mk index 0f22e4102..888cf7a1e 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) \