mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-31 08:25:32 +00:00
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:
parent
a0d9851dd0
commit
e4d610f905
@ -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"
|
||||
|
@ -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[*]}'"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user