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>
This commit is contained in:
Yann E. MORIN" 2011-01-02 13:52:16 +01:00
parent e4d610f905
commit 8a952d18e0
2 changed files with 11 additions and 0 deletions

View File

@ -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

View File

@ -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 )