scripts/build/binutils.sh
changeset 466 7f9bbf94b0bb
parent 465 8654a8d49ff9
child 486 92f6149c4275
     1.1 --- a/scripts/build/binutils.sh	Mon Apr 28 09:27:21 2008 +0000
     1.2 +++ b/scripts/build/binutils.sh	Wed Apr 30 10:43:41 2008 +0000
     1.3 @@ -25,6 +25,13 @@
     1.4  
     1.5      CT_DoStep INFO "Installing binutils"
     1.6  
     1.7 +    binutils_opts=
     1.8 +    # If GMP and MPFR were configured, then use that,
     1.9 +    # otherwise let binutils find the system-wide libraries, if they exist.
    1.10 +    if [ "${CT_CC_GCC_GMP_MPFR}" = "y" ]; then
    1.11 +        binutils_opts="--with-gmp=${CT_PREFIX_DIR} --with-mpfr=${CT_PREFIX_DIR}"
    1.12 +    fi
    1.13 +
    1.14      CT_DoLog EXTRA "Configuring binutils"
    1.15      CFLAGS="${CT_CFLAGS_FOR_HOST}"                  \
    1.16      "${CT_SRC_DIR}/${CT_BINUTILS_FILE}/configure"   \
    1.17 @@ -34,6 +41,7 @@
    1.18          --target=${CT_TARGET}                       \
    1.19          --prefix=${CT_PREFIX_DIR}                   \
    1.20          --disable-nls                               \
    1.21 +        ${binutils_opts}                            \
    1.22          ${CT_BINUTILS_EXTRA_CONFIG}                 \
    1.23          ${BINUTILS_SYSROOT_ARG}                     2>&1 |CT_DoLog ALL
    1.24