Use target GMP and MPFR when building target binutils:
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Nov 04 18:31:07 2008 +0000 (2008-11-04)
changeset 10354e94b43c56ed
parent 1034 61ca231c8f9a
child 1036 06aecfa2c355
Use target GMP and MPFR when building target binutils:
- this is not really used yet, as only the iberty and bfd libraries are built
- if we ever are to build the full binutils for the target, then it is already configured to use the target GMP and MPFR.

/trunk/scripts/build/binutils.sh | 7 7 0 0 +++++++
1 file changed, 7 insertions(+)
scripts/build/binutils.sh
     1.1 --- a/scripts/build/binutils.sh	Tue Nov 04 18:28:56 2008 +0000
     1.2 +++ b/scripts/build/binutils.sh	Tue Nov 04 18:31:07 2008 +0000
     1.3 @@ -79,6 +79,12 @@
     1.4      [ "${CT_BINUTILS_FOR_TARGET_BFD}"    = "y" ] && targets="${targets} bfd"
     1.5      targets="${targets# }"
     1.6  
     1.7 +    binutils_opts=
     1.8 +    # If GMP and MPFR were configured, then use that
     1.9 +    if [ "${CT_GMP_MPFR_TARGET}" = "y" ]; then
    1.10 +        binutils_opts="--with-gmp=${CT_SYSROOT_DIR}/usr --with-mpfr=${CT_SYSROOT_DIR}/usr"
    1.11 +    fi
    1.12 +
    1.13      if [ -n "${targets}" ]; then
    1.14          CT_DoStep INFO "Installing binutils for target"
    1.15          mkdir -p "${CT_BUILD_DIR}/build-binutils-for-target"
    1.16 @@ -96,6 +102,7 @@
    1.17              --enable-static                             \
    1.18              --disable-nls                               \
    1.19              --disable-multilib                          \
    1.20 +            ${binutils_opts}                            \
    1.21              ${CT_ARCH_WITH_FLOAT}                       \
    1.22              ${CT_BINUTILS_EXTRA_CONFIG}
    1.23