Browse Source

binutils: allow to build gold without making it default

Waldemar Brodkorb 7 years ago
parent
commit
fe2080867e
2 changed files with 8 additions and 5 deletions
  1. 4 5
      target/config/Config.in.toolchain
  2. 4 0
      toolchain/binutils/Makefile

+ 4 - 5
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"

+ 4 - 0
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