mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-04-11 05:09:56 +00:00
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:
parent
e4d610f905
commit
8a952d18e0
@ -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
|
||||
|
@ -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 )
|
||||
|
Loading…
x
Reference in New Issue
Block a user