summaryrefslogtreecommitdiff
path: root/scripts/build/cc
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-02-17 22:47:47 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-02-17 22:47:47 (GMT)
commit3eaa187de56bff5ee342ffc8b3feeca7ac2a2c62 (patch)
tree8c36e75f08741e956fcf9fcd0e09f5a1eafc4758 /scripts/build/cc
parentc6689215d15cba83404b6f4e67ddedb2c2ea1a48 (diff)
complibs: split-up selection for individual libs
Diffstat (limited to 'scripts/build/cc')
-rw-r--r--scripts/build/cc/gcc.sh28
1 files changed, 10 insertions, 18 deletions
diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh
index 1737b44..fbfb5d4 100644
--- a/scripts/build/cc/gcc.sh
+++ b/scripts/build/cc/gcc.sh
@@ -150,15 +150,11 @@ do_cc_core() {
else
extra_config+=("--disable-__cxa_atexit")
fi
- if [ "${CT_GMP_MPFR}" = "y" ]; then
- extra_config+=("--with-gmp=${CT_PREFIX_DIR}")
- extra_config+=("--with-mpfr=${CT_PREFIX_DIR}")
- fi
- if [ "${CT_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
+ [ -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}")
CT_DoLog DEBUG "Extra config passed: '${extra_config[*]}'"
@@ -300,18 +296,14 @@ do_cc() {
else
extra_config+=("--disable-__cxa_atexit")
fi
- if [ "${CT_GMP_MPFR}" = "y" ]; then
- extra_config+=("--with-gmp=${CT_PREFIX_DIR}")
- extra_config+=("--with-mpfr=${CT_PREFIX_DIR}")
- fi
- if [ "${CT_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
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}")
CT_DoLog DEBUG "Extra config passed: '${extra_config[*]}'"