summaryrefslogtreecommitdiff
path: root/toolchain/binutils
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-09-22 17:28:41 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-09-22 17:28:41 +0200
commitfe2080867e5ee35a416c982200674287ec9bf8a3 (patch)
tree0e86a271c15b4b6dd767e74b5ff665dd974238cc /toolchain/binutils
parentbfce3991ecaba8bcd4c648a37a3763b116aad745 (diff)
binutils: allow to build gold without making it default
Diffstat (limited to 'toolchain/binutils')
-rw-r--r--toolchain/binutils/Makefile4
1 files changed, 4 insertions, 0 deletions
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