summaryrefslogtreecommitdiff
path: root/scripts/build/binutils
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/binutils
parentc6689215d15cba83404b6f4e67ddedb2c2ea1a48 (diff)
complibs: split-up selection for individual libs
Diffstat (limited to 'scripts/build/binutils')
-rw-r--r--scripts/build/binutils/binutils.sh8
1 files changed, 3 insertions, 5 deletions
diff --git a/scripts/build/binutils/binutils.sh b/scripts/build/binutils/binutils.sh
index 938c369..fb653f6 100644
--- a/scripts/build/binutils/binutils.sh
+++ b/scripts/build/binutils/binutils.sh
@@ -26,10 +26,8 @@ do_binutils() {
# If GMP and MPFR were configured, then use that,
# otherwise let binutils find the system-wide libraries, if they exist.
- if [ "${CT_GMP_MPFR}" = "y" ]; then
- extra_config+=("--with-gmp=${CT_PREFIX_DIR}")
- extra_config+=("--with-mpfr=${CT_PREFIX_DIR}")
- fi
+ [ -z "${CT_GMP}" ] || extra_config+=("--with-gmp=${CT_PREFIX_DIR}")
+ [ -z "${CT_MPFR}" ] || extra_config+=("--with-mpfr=${CT_PREFIX_DIR}")
CT_DoLog EXTRA "Configuring binutils"
CFLAGS="${CT_CFLAGS_FOR_HOST}" \
@@ -86,7 +84,7 @@ do_binutils_target() {
done
# If GMP and MPFR were configured, then use that
- if [ "${CT_BINUTILS_TARGET_USE_GMP_MPFR}" = "y" ]; then
+ if [ "${CT_COMP_LIBS_TARGET}" = "y" ]; then
extra_config+=("--with-gmp=${CT_SYSROOT_DIR}/usr")
extra_config+=("--with-mpfr=${CT_SYSROOT_DIR}/usr")
fi