summaryrefslogtreecommitdiff
path: root/scripts/build/cc/100-gcc.sh
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2017-02-19 03:00:25 (GMT)
committerAlexey Neyman <stilor@att.net>2017-02-19 03:00:25 (GMT)
commit45512b003d04b5a89c5c3bb6b674683d82b87f42 (patch)
tree09c9b42a5979e845554c8ee721c9652c2064b414 /scripts/build/cc/100-gcc.sh
parent31e7cd688de455ceef5a4914d9fd540e5e55579f (diff)
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 'scripts/build/cc/100-gcc.sh')
-rw-r--r--scripts/build/cc/100-gcc.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/build/cc/100-gcc.sh b/scripts/build/cc/100-gcc.sh
index 43488a2..91ddd3d 100644
--- a/scripts/build/cc/100-gcc.sh
+++ b/scripts/build/cc/100-gcc.sh
@@ -1050,6 +1050,8 @@ do_gcc_backend() {
if [ "${CT_CC_GCC_ENABLE_PLUGINS}" = "y" ]; then
extra_config+=( --enable-plugin )
+ else
+ extra_config+=( --disable-plugin )
fi
if [ "${CT_CC_GCC_GOLD}" = "y" ]; then
extra_config+=( --enable-gold )