summaryrefslogtreecommitdiff
path: root/scripts/build/cc/gcc.sh
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-10-08 21:51:38 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-10-08 21:51:38 (GMT)
commit8b0af28c69b5c6ad83f30fb4324630a383df7c72 (patch)
tree5bb8b0f2b7d429be50bcaed37c565beb1cab6091 /scripts/build/cc/gcc.sh
parentcbd352f9ac7ca97f267077d193d2d43bb44626ec (diff)
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>
Diffstat (limited to 'scripts/build/cc/gcc.sh')
-rw-r--r--scripts/build/cc/gcc.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh
index 45d36c3..a30a3d4 100644
--- a/scripts/build/cc/gcc.sh
+++ b/scripts/build/cc/gcc.sh
@@ -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