diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2010-02-17 23:47:47 +0100 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2010-02-17 23:47:47 +0100 |
commit | 3eaa187de56bff5ee342ffc8b3feeca7ac2a2c62 (patch) | |
tree | 8c36e75f08741e956fcf9fcd0e09f5a1eafc4758 /scripts/build/binutils/binutils.sh | |
parent | c6689215d15cba83404b6f4e67ddedb2c2ea1a48 (diff) | |
download | crosstool-ng-3eaa187de56bff5ee342ffc8b3feeca7ac2a2c62.tar.gz crosstool-ng-3eaa187de56bff5ee342ffc8b3feeca7ac2a2c62.tar.bz2 crosstool-ng-3eaa187de56bff5ee342ffc8b3feeca7ac2a2c62.zip |
complibs: split-up selection for individual libs
Diffstat (limited to 'scripts/build/binutils/binutils.sh')
-rw-r--r-- | scripts/build/binutils/binutils.sh | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/scripts/build/binutils/binutils.sh b/scripts/build/binutils/binutils.sh index 938c3692..fb653f66 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 |