summaryrefslogtreecommitdiff
path: root/scripts/build
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-03-05 17:55:25 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-03-05 17:55:25 (GMT)
commit8e47201cf2c9c6a47385e2b7e65aed6715044cb4 (patch)
tree7bcaf0095ac15c068c5de5edf14574711f8be465 /scripts/build
parent99078431ad3efdbd8dc1fc5eace91a3cde2cc966 (diff)
cc/gcc: fix use of companion libraries
Diffstat (limited to 'scripts/build')
-rw-r--r--scripts/build/cc/gcc.sh28
1 files changed, 18 insertions, 10 deletions
diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh
index fbfb5d4..9f0c33b 100644
--- a/scripts/build/cc/gcc.sh
+++ b/scripts/build/cc/gcc.sh
@@ -150,11 +150,15 @@ do_cc_core() {
else
extra_config+=("--disable-__cxa_atexit")
fi
- [ -z "${CT_GMP}" ] || extra_config+=("--with-gmp=${CT_PREFIX_DIR}")
- [ -z "${CT_MPFR}" ] || extra_config+=("--with-mpfr=${CT_PREFIX_DIR}")
- [ -z "${CT_PPL}" ] || extra_config+=("--with-ppl=${CT_PREFIX_DIR}")
- [ -z "${CT_CLOOG}" ] || extra_config+=("--with-cloog=${CT_PREFIX_DIR}")
- [ -z "${CT_MPC}" ] || extra_config+=("--with-mpc=${CT_PREFIX_DIR}")
+ if [ "${CT_GCC_USE_GMP_MPFR}" = "y" ]; then
+ extra_config+=("--with-gmp=${CT_PREFIX_DIR}")
+ extra_config+=("--with-mpfr=${CT_PREFIX_DIR}")
+ fi
+ if [ "${CT_GCC_USE_PPL_CLOOG_MPC}" = "y" ]; then
+ extra_config+=("--with-ppl=${CT_PREFIX_DIR}")
+ extra_config+=("--with-cloog=${CT_PREFIX_DIR}")
+ extra_config+=("--with-mpc=${CT_PREFIX_DIR}")
+ fi
CT_DoLog DEBUG "Extra config passed: '${extra_config[*]}'"
@@ -299,11 +303,15 @@ do_cc() {
if [ -n "${CC_ENABLE_CXX_FLAGS}" ]; then
extra_config+=("--enable-cxx-flags=${CC_ENABLE_CXX_FLAGS}")
fi
- [ -z "${CT_GMP}" ] || extra_config+=("--with-gmp=${CT_PREFIX_DIR}")
- [ -z "${CT_MPFR}" ] || extra_config+=("--with-mpfr=${CT_PREFIX_DIR}")
- [ -z "${CT_PPL}" ] || extra_config+=("--with-ppl=${CT_PREFIX_DIR}")
- [ -z "${CT_CLOOG}" ] || extra_config+=("--with-cloog=${CT_PREFIX_DIR}")
- [ -z "${CT_MPC}" ] || extra_config+=("--with-mpc=${CT_PREFIX_DIR}")
+ if [ "${CT_GCC_USE_GMP_MPFR}" = "y" ]; then
+ extra_config+=("--with-gmp=${CT_PREFIX_DIR}")
+ extra_config+=("--with-mpfr=${CT_PREFIX_DIR}")
+ fi
+ if [ "${CT_GCC_USE_PPL_CLOOG_MPC}" = "y" ]; then
+ extra_config+=("--with-ppl=${CT_PREFIX_DIR}")
+ extra_config+=("--with-cloog=${CT_PREFIX_DIR}")
+ extra_config+=("--with-mpc=${CT_PREFIX_DIR}")
+ fi
CT_DoLog DEBUG "Extra config passed: '${extra_config[*]}'"