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.
This commit is contained in:
Jasmin Jessich 2015-09-25 01:32:27 +02:00
parent 6b9a8727d8
commit 9bce2dc540

View File

@ -752,8 +752,10 @@ do_gcc_backend() {
fi fi
if [ "${CT_CC_GCC_USE_LTO}" = "y" ]; then if [ "${CT_CC_GCC_USE_LTO}" = "y" ]; then
extra_config+=("--with-libelf=${complibs}") extra_config+=("--with-libelf=${complibs}")
extra_config+=("--enable-lto")
elif [ "${CT_CC_GCC_HAS_LTO}" = "y" ]; then elif [ "${CT_CC_GCC_HAS_LTO}" = "y" ]; then
extra_config+=("--with-libelf=no") extra_config+=("--with-libelf=no")
extra_config+=("--disable-lto")
fi fi
if [ ${#host_libstdcxx_flags[@]} -ne 0 ]; then if [ ${#host_libstdcxx_flags[@]} -ne 0 ]; then