diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-01-02 12:52:16 (GMT) |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-01-02 12:52:16 (GMT) |
commit | 8a952d18e0f650829b60be72f051cadf0fc9e247 (patch) | |
tree | 924e015624c6b9cecda053d405e2d5cd19891da0 | |
parent | e4d610f9058678d75f0f5060c925ece374488e3c (diff) |
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" <yann.morin.1998@anciens.enib.fr>
-rw-r--r-- | config/binutils/binutils.in | 8 | ||||
-rw-r--r-- | scripts/build/binutils/binutils.sh | 3 |
2 files changed, 11 insertions, 0 deletions
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 ) |