# HG changeset patch # User "Yann E. MORIN" # Date 1225823467 0 # Node ID 4e94b43c56ed01245f8b0ebe2b5b7c85bb112cc3 # Parent 61ca231c8f9acd197c0e195a6131b7a4baf3c576 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(+) diff -r 61ca231c8f9a -r 4e94b43c56ed scripts/build/binutils.sh --- a/scripts/build/binutils.sh Tue Nov 04 18:28:56 2008 +0000 +++ b/scripts/build/binutils.sh Tue Nov 04 18:31:07 2008 +0000 @@ -79,6 +79,12 @@ [ "${CT_BINUTILS_FOR_TARGET_BFD}" = "y" ] && targets="${targets} bfd" targets="${targets# }" + binutils_opts= + # If GMP and MPFR were configured, then use that + if [ "${CT_GMP_MPFR_TARGET}" = "y" ]; then + binutils_opts="--with-gmp=${CT_SYSROOT_DIR}/usr --with-mpfr=${CT_SYSROOT_DIR}/usr" + fi + if [ -n "${targets}" ]; then CT_DoStep INFO "Installing binutils for target" mkdir -p "${CT_BUILD_DIR}/build-binutils-for-target" @@ -96,6 +102,7 @@ --enable-static \ --disable-nls \ --disable-multilib \ + ${binutils_opts} \ ${CT_ARCH_WITH_FLOAT} \ ${CT_BINUTILS_EXTRA_CONFIG}