cc/gcc: add support for 4.5.0 or later versions

starting with 4.5.0, gcc requires libelf.
This commit is contained in:
Yann E. MORIN" 2010-04-15 22:35:18 +02:00
parent c9b45d8751
commit 3c160b2205
3 changed files with 23 additions and 1 deletions

View File

@ -121,6 +121,14 @@ config CC_GCC_4_4_or_later
select CC_GCC_4_2_or_later
select CC_GCC_USE_PPL_CLOOG_MPC
config CC_GCC_4_5_or_later
bool
default n
select CC_GCC_4_4_or_later
select CC_GCC_4_3_or_later
select CC_GCC_4_2_or_later
select CC_GCC_USE_LIBELF
config CC_GCC_USE_GMP_MPFR
bool
default n
@ -134,6 +142,11 @@ config CC_GCC_USE_PPL_CLOOG_MPC
select CLOOG
select MPC
config CC_GCC_USE_LIBELF
bool
default n
select LIBELF
config CC_VERSION
string
# Don't remove next line

View File

@ -100,7 +100,10 @@ addToolVersion() {
ver_M=$(echo "${version}...." |cut -d . -f 1)
ver_m=$(echo "${version}...." |cut -d . -f 2)
if [ ${ver_M} -gt 4 \
-o \( ${ver_M} -eq 4 -a ${ver_m} -ge 4 \) ]; then
-o \( ${ver_M} -eq 4 -a ${ver_m} -ge 5 \) ]; then
SedExpr1="${SedExpr1}\n select CC_GCC_4_5_or_later"
elif [ ${ver_M} -gt 4 \
-o \( ${ver_M} -eq 4 -a ${ver_m} -ge 4 \) ]; then
SedExpr1="${SedExpr1}\n select CC_GCC_4_4_or_later"
elif [ ${ver_M} -gt 4 \
-o \( ${ver_M} -eq 4 -a ${ver_m} -ge 3 \) ]; then

View File

@ -171,6 +171,9 @@ do_cc_core() {
extra_config+=("--with-cloog=${CT_COMPLIBS_DIR}")
extra_config+=("--with-mpc=${CT_COMPLIBS_DIR}")
fi
if [ "${CT_CC_GCC_USE_LIBELF}" = "y" ]; then
extra_config+=("--with-libelf=${CT_COMPLIBS_DIR}")
fi
CT_DoLog DEBUG "Extra config passed: '${extra_config[*]}'"
@ -333,6 +336,9 @@ do_cc() {
extra_config+=("--with-cloog=${CT_COMPLIBS_DIR}")
extra_config+=("--with-mpc=${CT_COMPLIBS_DIR}")
fi
if [ "${CT_CC_GCC_USE_LIBELF}" = "y" ]; then
extra_config+=("--with-libelf=${CT_COMPLIBS_DIR}")
fi
if [ "${CT_THREADS}" = "none" ]; then
extra_config+=("--disable-threads")