mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-02-12 13:35:19 +00:00
Merge pull request #187 from jasmin-j/sync_lto
Synchronize CC_GCC_USE_LTO parameter setting II
This commit is contained in:
commit
625f7e66b4
@ -772,8 +772,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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user