mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-31 16:36:14 +00:00
cc/gcc: add support for 4.5.0 or later versions
starting with 4.5.0, gcc requires libelf.
This commit is contained in:
parent
c9b45d8751
commit
3c160b2205
@ -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
|
||||
|
@ -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
|
||||
|
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user