binutils/binutils: add support for threaded gold
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Jan 02 13:52:16 2011 +0100 (2011-01-02)
changeset 2246c69f8ef4bc7c
parent 2245 a6d790bc17af
child 2247 49fa28e62b07
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>
config/binutils/binutils.in
scripts/build/binutils/binutils.sh
     1.1 --- a/config/binutils/binutils.in	Sun Jan 02 13:56:05 2011 +0100
     1.2 +++ b/config/binutils/binutils.in	Sun Jan 02 13:52:16 2011 +0100
     1.3 @@ -123,6 +123,14 @@
     1.4  config BINUTILS_GOLD_INSTALLED
     1.5      bool
     1.6  
     1.7 +config BINUTILS_GOLD_THREADS
     1.8 +    bool
     1.9 +    prompt "|  Enable threaded gold"
    1.10 +    depends on BINUTILS_GOLD_INSTALLED
    1.11 +    help
    1.12 +      When configured with threads, gold can link in parallel,
    1.13 +      possibly cooperating with a make jobserver.
    1.14 +
    1.15  config BINUTILS_LINKERS_LIST
    1.16      string
    1.17      default "ld"        if BINUTILS_LINKER_LD
     2.1 --- a/scripts/build/binutils/binutils.sh	Sun Jan 02 13:56:05 2011 +0100
     2.2 +++ b/scripts/build/binutils/binutils.sh	Sun Jan 02 13:52:16 2011 +0100
     2.3 @@ -42,6 +42,9 @@
     2.4                  extra_config+=( --enable-ld=yes --enable-gold=default )
     2.5                  ;;
     2.6          esac
     2.7 +        if [ "${CT_BINUTILS_GOLD_THREADED}" = "y" ]; then
     2.8 +            extra_config+=( --enable-threads )
     2.9 +        fi
    2.10      fi
    2.11      if [ "${CT_BINUTILS_PLUGINS}" = "y" ]; then
    2.12          extra_config+=( --enable-plugins )