# HG changeset patch # User "Yann E. MORIN" # Date 1293972736 -3600 # Node ID c69f8ef4bc7c2c6ddb4266443f2e2ed75c418e5f # Parent a6d790bc17af56cfaf95d20c179c7ec5083067a8 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 -r a6d790bc17af -r c69f8ef4bc7c config/binutils/binutils.in --- a/config/binutils/binutils.in Sun Jan 02 13:56:05 2011 +0100 +++ b/config/binutils/binutils.in Sun Jan 02 13:52:16 2011 +0100 @@ -123,6 +123,14 @@ 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 -r a6d790bc17af -r c69f8ef4bc7c scripts/build/binutils/binutils.sh --- a/scripts/build/binutils/binutils.sh Sun Jan 02 13:56:05 2011 +0100 +++ b/scripts/build/binutils/binutils.sh Sun Jan 02 13:52:16 2011 +0100 @@ -42,6 +42,9 @@ 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 )