summaryrefslogtreecommitdiff
path: root/scripts/build/cc/gcc.sh
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-04-15 20:35:18 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-04-15 20:35:18 (GMT)
commit3c160b2205ec2857032bed04dd1ce89c053da395 (patch)
tree16024ac074093875e277b3275bcda5e4bc69343f /scripts/build/cc/gcc.sh
parentc9b45d8751c2c092ca97fb7db0a0f1bfa209c24f (diff)
cc/gcc: add support for 4.5.0 or later versions
starting with 4.5.0, gcc requires libelf.
Diffstat (limited to 'scripts/build/cc/gcc.sh')
-rw-r--r--scripts/build/cc/gcc.sh6
1 files changed, 6 insertions, 0 deletions
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")