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] |
Hi, On Thu, Dec 30, 2010 at 6:18 PM, Yann E. MORIN <yann.morin.1998@anciens.enib.fr> wrote: > # 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. > + This should be abstracted; gold is just a plug-in user. People may want to just enable binutils plugins' support for plugins without carrying about gold. That said, someone wanting this will certainly not use ct-ng to build toolchains ... - Arnaud > ?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 > > -- 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] |