From c6689215d15cba83404b6f4e67ddedb2c2ea1a48 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Tue, 9 Feb 2010 22:50:53 +0100 Subject: binutils/binutils: fix using GMP and MPFR diff --git a/config/binutils/binutils.in b/config/binutils/binutils.in index 11b09c7..ce728f1 100644 --- a/config/binutils/binutils.in +++ b/config/binutils/binutils.in @@ -75,4 +75,16 @@ config BINUTILS_FOR_TARGET_BFD prompt "libbfd" default y +config BINUTILS_TARGET_USE_GMP_MPFR + bool + prompt "Use GMP and MPFR" + default n + select GMP_MPFR + select COMP_LIBS_TARGET + help + binutils can be configured to use GMP and MPFR. + While this is automatically handled for the cross-binutils, + You have to explicitly state so for the native libraries that + will run on the target. + endif # BINUTILS_FOR_TARGET diff --git a/scripts/build/binutils/binutils.sh b/scripts/build/binutils/binutils.sh index ec9c409..938c369 100644 --- a/scripts/build/binutils/binutils.sh +++ b/scripts/build/binutils/binutils.sh @@ -85,9 +85,8 @@ do_binutils_target() { install_targets+=("install-${t}") done - # If GMP and MPFR were configured, then use that - if [ "${CT_GMP_MPFR_TARGET}" = "y" ]; then + if [ "${CT_BINUTILS_TARGET_USE_GMP_MPFR}" = "y" ]; then extra_config+=("--with-gmp=${CT_SYSROOT_DIR}/usr") extra_config+=("--with-mpfr=${CT_SYSROOT_DIR}/usr") fi -- cgit v0.10.2-6-g49f6