1.1 --- a/scripts/build/cc/gcc.sh Sat Jan 22 22:35:43 2011 +0100
1.2 +++ b/scripts/build/cc/gcc.sh Fri Jan 28 18:53:37 2011 +0100
1.3 @@ -481,13 +481,10 @@
1.4 "") extra_config+=("--without-long-double-128");;
1.5 esac
1.6
1.7 - # If LTO is selected and binutils has gold, then enable
1.8 - # building the lto plugin with the --enable-gold option,
1.9 - # but only if gold has support for plugins.
1.10 - if [ "${CT_BINUTILS_GOLD_INSTALLED}" = "y" \
1.11 - -a "${CT_BINUTILS_GOLD_PLUGINS}" = "y" \
1.12 - -a "${CT_CC_GCC_USE_LTO}" = "y" \
1.13 - ]; then
1.14 + if [ "${CT_CC_GCC_ENABLE_PLUGINS}" = "y" ]; then
1.15 + extra_config+=( --enable-plugin )
1.16 + fi
1.17 + if [ "${CT_CC_GCC_GOLD}" = "y" ]; then
1.18 extra_config+=( --enable-gold )
1.19 fi
1.20