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. --- scripts/build/cc/gcc.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'scripts/build') 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") -- cgit v1.2.3