1.1 --- a/config/cc/gcc.in.2 Fri Jan 28 18:53:37 2011 +0100
1.2 +++ b/config/cc/gcc.in.2 Mon Mar 28 01:05:18 2011 +0200
1.3 @@ -32,12 +32,13 @@
1.4 # - if binutils does not have plugins: LTO is handled by collect2
1.5 # In any case, LTO support does not depend on plugins, but takes
1.6 # advantage of it
1.7 +# Also, only the 4.5 series needs libelf for LTO
1.8 config CC_GCC_USE_LTO
1.9 bool
1.10 prompt "Enable LTO"
1.11 default y
1.12 depends on CC_GCC_HAS_LTO
1.13 - select CC_GCC_USE_LIBELF
1.14 + select CC_GCC_USE_LIBELF if CC_GCC_4_5
1.15 help
1.16 Enable the Link Time Optimisations.
1.17