binutils/binutils: add support for plugins

Add an option to enable plugins support in binutils.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
This commit is contained in:
Yann E. MORIN" 2011-01-02 13:56:05 +01:00
parent a0d9851dd0
commit e4d610f905
2 changed files with 16 additions and 0 deletions

View File

@ -62,10 +62,14 @@ config BINUTILS_VERSION
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 @@ config BINUTILS_LINKERS_LIST
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"

View File

@ -43,6 +43,9 @@ do_binutils() {
;;
esac
fi
if [ "${CT_BINUTILS_PLUGINS}" = "y" ]; then
extra_config+=( --enable-plugins )
fi
CT_DoLog DEBUG "Extra config passed: '${extra_config[*]}'"