summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-11-04 18:31:07 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-11-04 18:31:07 (GMT)
commit25461c378b846785338776f0ab4a821c872e28cc (patch)
tree580068c351e388aecd5cc5c4dc0a998a4951ad8a /scripts
parent51f267ee00d6e1030ed52c2a6e1622b93db5c6f3 (diff)
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(+)
Diffstat (limited to 'scripts')
-rw-r--r--scripts/build/binutils.sh7
1 files changed, 7 insertions, 0 deletions
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}