summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJasmin Jessich <jasmin@anw.at>2015-09-24 23:32:27 (GMT)
committerJasmin Jessich <jasmin@anw.at>2015-09-24 23:32:27 (GMT)
commit9bce2dc540ee95e31c4685105d359e2cf8bf1e33 (patch)
tree4865d4073703c58710a62adaee451dac6370fbb8 /scripts
parent6b9a8727d8a9aa7d308991fa7d5ef0a72acc019f (diff)
Synchronize CT_CC_GCC_USE_LTO parameter setting in do_gcc_backend with the one
from do_gcc_core_backend, by adding "--enable-lto"/"--disable-lto". Signed-off-by: Jasmin Jessich <jasmin@anw.
Diffstat (limited to 'scripts')
-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 72534fe..f7eed94 100644
--- a/scripts/build/cc/100-gcc.sh
+++ b/scripts/build/cc/100-gcc.sh
@@ -752,8 +752,10 @@ do_gcc_backend() {
fi
if [ "${CT_CC_GCC_USE_LTO}" = "y" ]; then
extra_config+=("--with-libelf=${complibs}")
+ extra_config+=("--enable-lto")
elif [ "${CT_CC_GCC_HAS_LTO}" = "y" ]; then
extra_config+=("--with-libelf=no")
+ extra_config+=("--disable-lto")
fi
if [ ${#host_libstdcxx_flags[@]} -ne 0 ]; then