summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--target/config/Config.in.toolchain9
-rw-r--r--toolchain/binutils/Makefile4
2 files changed, 8 insertions, 5 deletions
diff --git a/target/config/Config.in.toolchain b/target/config/Config.in.toolchain
index 969a1e73b..eabac8f4b 100644
--- a/target/config/Config.in.toolchain
+++ b/target/config/Config.in.toolchain
@@ -106,13 +106,12 @@ config ADK_TARGET_USE_LD_GC
bool "Use LD garbage collection for all packages"
config ADK_TOOLCHAIN_WITH_GOLD
- bool
+ bool "Enable building of GOLD linker"
config ADK_TARGET_USE_GOLD
- bool "Use GOLD as linker for all packages"
- select ADK_TOOLCHAIN_WITH_GOLD
- depends on !ADK_TARGET_ARCH_MIPS
- depends on !ADK_TARGET_ARCH_MIPS64
+ bool "Use GOLD as default linker"
+ depends on ADK_TOOLCHAIN_WITH_GOLD
+ depends on ADK_TARGET_LIB_GLIBC # can not be build with GOLD (glibc 2.24 checked)
config ADK_TARGET_USE_GNU_HASHSTYLE
bool "Use GNU hashstyle for all packages"
diff --git a/toolchain/binutils/Makefile b/toolchain/binutils/Makefile
index 1000a1c03..14c33bc05 100644
--- a/toolchain/binutils/Makefile
+++ b/toolchain/binutils/Makefile
@@ -19,8 +19,12 @@ CONFOPTS+= --disable-lto --disable-plugins
endif
ifeq ($(ADK_TOOLCHAIN_WITH_GOLD),y)
+ifeq ($(ADK_TARGET_USE_GOLD),y)
CONFOPTS+= --enable-gold=default
else
+CONFOPTS+= --enable-gold
+endif
+else
CONFOPTS+= --disable-gold
endif