cc/gcc: prepare for upcoming 4.6

gcc 4.6 will no longer depend on libelf.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
This commit is contained in:
Yann E. MORIN" 2011-03-19 16:01:40 +01:00
parent 67d96ea16f
commit ad7ebf3219
2 changed files with 16 additions and 1 deletions

View File

@ -196,6 +196,20 @@ config CC_GCC_4_5_or_later
default n
select CC_GCC_4_4_or_later
config CC_GCC_4_6
bool
default n
select CC_GCC_4_6_or_later
select CC_GCC_USE_GMP_MPFR
select CC_GCC_USE_MPC
select CC_GCC_HAS_GRAPHITE
select CC_GCC_HAS_LTO
config CC_GCC_4_6_or_later
bool
default n
select CC_GCC_4_5_or_later
config CC_GCC_HAS_GRAPHITE
bool
default n

View File

@ -32,7 +32,8 @@ config CC_GCC_USE_GRAPHITE
# - 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
# Also, only the 4.5 series needs libelf for LTO
# Also, only the 4.5 series needs libelf for LTO; 4.6 has dropped
# the dependency.
config CC_GCC_USE_LTO
bool
prompt "Enable LTO"