diff options
author | Alexey Neyman <stilor@att.net> | 2017-02-18 19:00:25 -0800 |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2017-02-18 19:00:25 -0800 |
commit | 45512b003d04b5a89c5c3bb6b674683d82b87f42 (patch) | |
tree | 09c9b42a5979e845554c8ee721c9652c2064b414 /config/cc | |
parent | 31e7cd688de455ceef5a4914d9fd540e5e55579f (diff) | |
download | crosstool-ng-45512b003d04b5a89c5c3bb6b674683d82b87f42.tar.gz crosstool-ng-45512b003d04b5a89c5c3bb6b674683d82b87f42.tar.bz2 crosstool-ng-45512b003d04b5a89c5c3bb6b674683d82b87f42.zip |
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>
Diffstat (limited to 'config/cc')
-rw-r--r-- | config/cc/gcc.in.2 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/config/cc/gcc.in.2 b/config/cc/gcc.in.2 index 8818de6e..638bfe93 100644 --- a/config/cc/gcc.in.2 +++ b/config/cc/gcc.in.2 @@ -124,6 +124,7 @@ config CC_GCC_USE_GRAPHITE config CC_GCC_USE_LTO bool "Enable LTO" default y + depends on ! STATIC_TOOLCHAIN help Enable the Link Time Optimisations. |