aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--toolchain/gcc/Makefile.in7
1 files changed, 3 insertions, 4 deletions
diff --git a/toolchain/gcc/Makefile.in b/toolchain/gcc/Makefile.in
index c325b6a43..29617eeab 100644
--- a/toolchain/gcc/Makefile.in
+++ b/toolchain/gcc/Makefile.in
@@ -60,12 +60,11 @@ EXTRA_TARGET_GCC_CONFIG_OPTIONS:=$(strip $(subst ",, $(BR2_EXTRA_TARGET_GCC_CONF
#"))
ifeq ($(BR2_PREFER_IMA),y)
-# >= 4.2
-ifeq ($(findstring 4.2,$(GCC_VERSION)),4.2)
+# >= 4.1
+ifeq ($(findstring 4.,$(GCC_VERSION)),4.)
+ifneq ($(findstring 4.0,$(GCC_VERSION)),4.0)
EXTRA_TARGET_GCC_CONFIG_OPTIONS+=--enable-intermodule
endif
-ifeq ($(findstring 4.3,$(GCC_VERSION)),4.3)
-EXTRA_TARGET_GCC_CONFIG_OPTIONS+=--enable-intermodule
endif
endif # BR2_PREFER_IMA=y