Skip to content

Commit

Permalink
allow plugins and LTO with static toolchains
Browse files Browse the repository at this point in the history
This reverts commit 0841e2f from 2011,
which disabled plugin support in binutils for static toolchains, citing
build system problems. This problem seems to be resolved.

This also reverts part of 45512b0 from
2017, which disabled LTO in gcc for static toolchains, citing problems
on Arch Linux with loading the LTO plugin from a static binary.

Signed-off-by: Chris Copeland <[email protected]>
  • Loading branch information
chrisnc authored and cpackham committed Sep 24, 2023
1 parent dc82a2b commit f22be3a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion config/binutils/binutils.in
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ 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
Expand Down
2 changes: 0 additions & 2 deletions config/cc/gcc.in
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
config CC_GCC_ENABLE_PLUGINS
def_bool y
depends on BINUTILS_PLUGINS
depends on ! STATIC_TOOLCHAIN

# If binutils installs gold, enable support for gold in gcc
config CC_GCC_GOLD
Expand Down Expand Up @@ -194,7 +193,6 @@ config CC_GCC_USE_GRAPHITE
config CC_GCC_USE_LTO
bool "Enable LTO"
default y
depends on ! STATIC_TOOLCHAIN
select ZLIB_NEEDED
help
Enable the Link Time Optimisations.
Expand Down

0 comments on commit f22be3a

Please sign in to comment.