binutils: Don't enable plugins with static toolchain
Some checks failed
CI / crosstool (macos-13) (push) Has been cancelled
CI / crosstool (ubuntu-22.04) (push) Has been cancelled
CI / tarballs (ubuntu-22.04) (push) Has been cancelled
CI / toolchains (push) Has been cancelled

A static toolchain by definition can't load plugins and GCC will reject
the --enable-plugin configure option if we're trying to build a static
toolchain.

Fixes #2288
Signed-off-by: Chris Packham <judge.packham@gmail.com>
This commit is contained in:
Chris Packham 2025-02-15 13:33:21 +13:00
parent 106cfa2016
commit e053fc5fa5

View File

@ -132,6 +132,7 @@ config BINUTILS_LINKER_DEFAULT
config BINUTILS_PLUGINS
bool
prompt "Enable support for plugins"
depends on !STATIC_TOOLCHAIN
help
binutils can be extended through the use of plugins.
Especially, gold can use the lto-plugin, as installed