mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-02-20 17:12:55 +00:00
cc/gcc: fix enabling/disabling LTO
There is a ./configure option for that. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
This commit is contained in:
parent
cbd352f9ac
commit
8b0af28c69
@ -181,8 +181,10 @@ do_cc_core() {
|
||||
fi
|
||||
if [ "${CT_CC_GCC_USE_LTO}" = "y" ]; then
|
||||
extra_config+=("--with-libelf=${CT_COMPLIBS_DIR}")
|
||||
extra_config+=("--enable-lto")
|
||||
elif [ "${CT_CC_GCC_HAS_LTO}" = "y" ]; then
|
||||
extra_config+=("--with-libelf=no")
|
||||
extra_config+=("--disable-lto")
|
||||
fi
|
||||
|
||||
if [ "${CT_CC_GCC_ENABLE_TARGET_OPTSPACE}" = "y" ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user