diff -r 9ab4392430ad -r 61608c9365ab scripts/build/cc/gcc.sh --- a/scripts/build/cc/gcc.sh Sat Jan 22 22:35:43 2011 +0100 +++ b/scripts/build/cc/gcc.sh Fri Jan 28 18:53:37 2011 +0100 @@ -481,13 +481,10 @@ "") extra_config+=("--without-long-double-128");; esac - # If LTO is selected and binutils has gold, then enable - # building the lto plugin with the --enable-gold option, - # but only if gold has support for plugins. - if [ "${CT_BINUTILS_GOLD_INSTALLED}" = "y" \ - -a "${CT_BINUTILS_GOLD_PLUGINS}" = "y" \ - -a "${CT_CC_GCC_USE_LTO}" = "y" \ - ]; then + if [ "${CT_CC_GCC_ENABLE_PLUGINS}" = "y" ]; then + extra_config+=( --enable-plugin ) + fi + if [ "${CT_CC_GCC_GOLD}" = "y" ]; then extra_config+=( --enable-gold ) fi