[PATCH 04 of 10] binutils/binutils: add support for gold plugins
Yann E. MORIN
yann.morin.1998@anciens.enib.fr
Thu Dec 30 23:39:00 GMT 2010
# HG changeset patch
# User "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
# Date 1293642027 -3600
# Node ID 6c4f7e8e35afea56916ff26466ec0041c0c727bf
# Parent b86c48da06be1df5e03921571310caf70136049a
binutils/binutils: add support for gold plugins
gold can use plugins, especially the lto-plugin as installed by gcc.
Add an option to support plugins.
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
@@ -119,6 +119,15 @@
config BINUTILS_GOLD_INSTALLED
bool
+config BINUTILS_GOLD_PLUGINS
+ bool
+ prompt "| Enable gold support for plugins"
+ depends on BINUTILS_GOLD_INSTALLED
+ help
+ gold can be extended through the use of plugins.
+ Especially, gold can use the lto-plugin, as installed
+ by gcc, to handle LTO.
+
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
@@ -42,6 +42,9 @@
extra_config+=( --enable-ld=yes --enable-gold=default )
;;
esac
+ if [ "${CT_BINUTILS_GOLD_PLUGINS}" = "y" ]; then
+ extra_config+=( --enable-plugins )
+ fi
fi
CT_DoLog DEBUG "Extra config passed: '${extra_config[*]}'"
--
For unsubscribe information see http://sourceware.org/lists.html#faq
More information about the crossgcc
mailing list