mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-02-22 09:40:56 +00:00
Have LTO depend-on non-static builds
Loading a dynamic library (LTO plugin) from a static binary fails on ArchLinux. It is also prone to break if a system is ever upgraded. Also, disable plugins if not enabled explicitly. Signed-off-by: Alexey Neyman <stilor@att.net>
This commit is contained in:
parent
31e7cd688d
commit
45512b003d
@ -124,6 +124,7 @@ config CC_GCC_USE_GRAPHITE
|
|||||||
config CC_GCC_USE_LTO
|
config CC_GCC_USE_LTO
|
||||||
bool "Enable LTO"
|
bool "Enable LTO"
|
||||||
default y
|
default y
|
||||||
|
depends on ! STATIC_TOOLCHAIN
|
||||||
help
|
help
|
||||||
Enable the Link Time Optimisations.
|
Enable the Link Time Optimisations.
|
||||||
|
|
||||||
|
@ -1050,6 +1050,8 @@ do_gcc_backend() {
|
|||||||
|
|
||||||
if [ "${CT_CC_GCC_ENABLE_PLUGINS}" = "y" ]; then
|
if [ "${CT_CC_GCC_ENABLE_PLUGINS}" = "y" ]; then
|
||||||
extra_config+=( --enable-plugin )
|
extra_config+=( --enable-plugin )
|
||||||
|
else
|
||||||
|
extra_config+=( --disable-plugin )
|
||||||
fi
|
fi
|
||||||
if [ "${CT_CC_GCC_GOLD}" = "y" ]; then
|
if [ "${CT_CC_GCC_GOLD}" = "y" ]; then
|
||||||
extra_config+=( --enable-gold )
|
extra_config+=( --enable-gold )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user