We use different toolchain directories for different ARM archs, so we should set...
[openwrt/openwrt.git] / toolchain / gcc / common.mk
index 0f22e4102140e11b109b54d876315fc4fc0f9efc..888cf7a1e5a8e846cc3dd95c2e421d42cb4d6637 100644 (file)
@@ -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) \