diff -r a09246191120 -r 17e9137b962e scripts/build/cc/gcc.sh --- a/scripts/build/cc/gcc.sh Fri Oct 08 23:37:12 2010 +0200 +++ b/scripts/build/cc/gcc.sh Fri Oct 08 23:51:38 2010 +0200 @@ -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