[openwrt/openwrt] toolchain: fix selecting older gcc versions for x86

LEDE Commits lede-commits at lists.infradead.org
Tue Feb 27 00:01:11 PST 2018


nbd pushed a commit to openwrt/openwrt.git, branch master:
https://git.lede-project.org/1198204a6ffedecd38413cf9aaf014c19d627ab5

commit 1198204a6ffedecd38413cf9aaf014c19d627ab5
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Tue Feb 27 09:00:52 2018 +0100

    toolchain: fix selecting older gcc versions for x86
    
    Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
 toolchain/gcc/Config.version | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/toolchain/gcc/Config.version b/toolchain/gcc/Config.version
index 2fc5082..ef47fb4 100644
--- a/toolchain/gcc/Config.version
+++ b/toolchain/gcc/Config.version
@@ -4,7 +4,8 @@ config GCC_VERSION_7_1_ARC
 
 config GCC_VERSION_7
 	default y if GCC_USE_VERSION_7
-	default y if x86_64 || i386
+	default y if (!TOOLCHAINOPTS && x86_64)
+	default y if (!TOOLCHAINOPTS && i386)
 	bool
 
 config GCC_VERSION



More information about the lede-commits mailing list