[PATCH 2 of 5] cc/gcc: fix enabling/disabling LTO
Yann E. MORIN
yann.morin.1998@anciens.enib.fr
Fri Oct 8 22:32:00 GMT 2010
# HG changeset patch
# User "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
# Date 1286574698 -7200
# Node ID 17e9137b962e7b6b36a8c82057d66564f79270f5
# Parent a0924619112015bdaa81a0a2313d21ef38607bc2
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>
diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh
--- a/scripts/build/cc/gcc.sh
+++ b/scripts/build/cc/gcc.sh
@@ -181,8 +181,10 @@
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
--
For unsubscribe information see http://sourceware.org/lists.html#faq
More information about the crossgcc
mailing list