From e053fc5fa5a2995fd8ca2e79dae57937361d4e1c Mon Sep 17 00:00:00 2001 From: Chris Packham Date: Sat, 15 Feb 2025 13:33:21 +1300 Subject: [PATCH] binutils: Don't enable plugins with static toolchain 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 --- config/binutils/binutils.in | 1 + 1 file changed, 1 insertion(+) diff --git a/config/binutils/binutils.in b/config/binutils/binutils.in index 4a91a8f7..af321524 100644 --- a/config/binutils/binutils.in +++ b/config/binutils/binutils.in @@ -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