From 3c160b2205ec2857032bed04dd1ce89c053da395 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Thu, 15 Apr 2010 22:35:18 +0200 Subject: cc/gcc: add support for 4.5.0 or later versions starting with 4.5.0, gcc requires libelf. diff --git a/config/cc/gcc.in b/config/cc/gcc.in index c229703..57bf2dc 100644 --- a/config/cc/gcc.in +++ b/config/cc/gcc.in @@ -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 diff --git a/scripts/addToolVersion.sh b/scripts/addToolVersion.sh index 42de00f..0258cdf 100755 --- a/scripts/addToolVersion.sh +++ b/scripts/addToolVersion.sh @@ -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 diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh index ed80463..3234e47 100644 --- a/scripts/build/cc/gcc.sh +++ b/scripts/build/cc/gcc.sh @@ -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") -- cgit v0.10.2-6-g49f6