diff --git a/config/cc/gcc.in b/config/cc/gcc.in index c2297034..57bf2dc5 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 42de00f5..0258cdfc 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 ed804636..3234e473 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")