diff -r 2f67667ee385 -r 61608c9365ab config/cc/gcc.in.2 --- a/config/cc/gcc.in.2 Thu Dec 09 18:55:42 2010 +0100 +++ b/config/cc/gcc.in.2 Fri Jan 28 18:53:37 2011 +0100 @@ -24,6 +24,14 @@ On some systems (eg. Cygwin), PPL and/or CLooG may not build properly (yet), so you'll have to say 'N' here. +# The way LTO works is a bit twisted. +# See: http://gcc.gnu.org/wiki/LinkTimeOptimization#Requirements +# Basically: +# - if binutils has plugins: LTO is handled by ld/gold by loading +# the plugin when linking +# - if binutils does not have plugins: LTO is handled by collect2 +# In any case, LTO support does not depend on plugins, but takes +# advantage of it config CC_GCC_USE_LTO bool prompt "Enable LTO"