This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 05 of 10] binutils/binutils: add support for threaded gold


# HG changeset patch
# User "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
# Date 1293642850 -3600
# Node ID fff72415427a478c782c588878fd67d34028b7f3
# Parent  6c4f7e8e35afea56916ff26466ec0041c0c727bf
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>

diff --git a/config/binutils/binutils.in b/config/binutils/binutils.in
--- a/config/binutils/binutils.in
+++ b/config/binutils/binutils.in
@@ -128,6 +128,14 @@
       Especially, gold can use the lto-plugin, as installed
       by gcc, to handle LTO.
 
+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
--- a/scripts/build/binutils/binutils.sh
+++ b/scripts/build/binutils/binutils.sh
@@ -45,6 +45,9 @@
         if [ "${CT_BINUTILS_GOLD_PLUGINS}" = "y" ]; then
             extra_config+=( --enable-plugins )
         fi
+        if [ "${CT_BINUTILS_GOLD_THREADED}" = "y" ]; then
+            extra_config+=( --enable-threads )
+        fi
     fi
 
     CT_DoLog DEBUG "Extra config passed: '${extra_config[*]}'"

--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]