From 25461c378b846785338776f0ab4a821c872e28cc Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Tue, 4 Nov 2008 18:31:07 +0000 Subject: 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 --git a/scripts/build/binutils.sh b/scripts/build/binutils.sh index f682bef..beda7cf 100644 --- a/scripts/build/binutils.sh +++ b/scripts/build/binutils.sh @@ -79,6 +79,12 @@ do_binutils_target() { [ "${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 @@ do_binutils_target() { --enable-static \ --disable-nls \ --disable-multilib \ + ${binutils_opts} \ ${CT_ARCH_WITH_FLOAT} \ ${CT_BINUTILS_EXTRA_CONFIG} -- cgit v0.10.2-6-g49f6