# HG changeset patch # User "Yann E. MORIN" # Date 1293972965 -3600 # Node ID a6d790bc17af56cfaf95d20c179c7ec5083067a8 # Parent dc2d2342e4a9d64ba9c7c3e29d3347058ebf9b0e binutils/binutils: add support for plugins Add an option to enable plugins support in binutils. Signed-off-by: "Yann E. MORIN" diff -r dc2d2342e4a9 -r a6d790bc17af config/binutils/binutils.in --- a/config/binutils/binutils.in Tue Dec 28 00:11:33 2010 +0100 +++ b/config/binutils/binutils.in Sun Jan 02 13:56:05 2011 +0100 @@ -62,10 +62,14 @@ config BINUTILS_2_21_or_later bool select BINUTILS_HAS_GOLD + select BINUTILS_HAS_PLUGINS config BINUTILS_HAS_GOLD bool +config BINUTILS_HAS_PLUGINS + bool + if BINUTILS_HAS_GOLD choice @@ -128,6 +132,15 @@ endif # BINUTILS_HAS_GOLD +config BINUTILS_PLUGINS + bool + prompt "Enable support for plugins" + depends on BINUTILS_HAS_PLUGINS + help + binutils can be extended through the use of plugins. + Especially, gold can use the lto-plugin, as installed + by gcc, to handle LTO. + config BINUTILS_EXTRA_CONFIG string prompt "binutils extra config" diff -r dc2d2342e4a9 -r a6d790bc17af scripts/build/binutils/binutils.sh --- a/scripts/build/binutils/binutils.sh Tue Dec 28 00:11:33 2010 +0100 +++ b/scripts/build/binutils/binutils.sh Sun Jan 02 13:56:05 2011 +0100 @@ -43,6 +43,9 @@ ;; esac fi + if [ "${CT_BINUTILS_PLUGINS}" = "y" ]; then + extra_config+=( --enable-plugins ) + fi CT_DoLog DEBUG "Extra config passed: '${extra_config[*]}'"