From 8a952d18e0f650829b60be72f051cadf0fc9e247 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Sun, 2 Jan 2011 13:52:16 +0100 Subject: binutils/binutils: add support for threaded gold When configured with support for threads, gold can link in parallel, possibly cooperating with a make jobserver. Add an option enabling threads. Signed-off-by: "Yann E. MORIN" diff --git a/config/binutils/binutils.in b/config/binutils/binutils.in index 94190f4..2ccba5c 100644 --- a/config/binutils/binutils.in +++ b/config/binutils/binutils.in @@ -123,6 +123,14 @@ endchoice # Enable linkers config BINUTILS_GOLD_INSTALLED bool +config BINUTILS_GOLD_THREADS + bool + prompt "| Enable threaded gold" + depends on BINUTILS_GOLD_INSTALLED + help + When configured with threads, gold can link in parallel, + possibly cooperating with a make jobserver. + config BINUTILS_LINKERS_LIST string default "ld" if BINUTILS_LINKER_LD diff --git a/scripts/build/binutils/binutils.sh b/scripts/build/binutils/binutils.sh index 1a7e33c..f784dcd 100644 --- a/scripts/build/binutils/binutils.sh +++ b/scripts/build/binutils/binutils.sh @@ -42,6 +42,9 @@ do_binutils() { extra_config+=( --enable-ld=yes --enable-gold=default ) ;; esac + if [ "${CT_BINUTILS_GOLD_THREADED}" = "y" ]; then + extra_config+=( --enable-threads ) + fi fi if [ "${CT_BINUTILS_PLUGINS}" = "y" ]; then extra_config+=( --enable-plugins ) -- cgit v0.10.2-6-g49f6