# HG changeset patch # User "Yann E. MORIN" # Date 1265752253 -3600 # Node ID 4201b5881a7e339c88f37cb80b230fcc03492a6a # Parent 54fe21c3fc77b5e5e0b97fe614bc199714daeabd binutils/binutils: fix using GMP and MPFR diff -r 54fe21c3fc77 -r 4201b5881a7e config/binutils/binutils.in --- a/config/binutils/binutils.in Thu Feb 18 00:04:48 2010 +0100 +++ b/config/binutils/binutils.in Tue Feb 09 22:50:53 2010 +0100 @@ -75,4 +75,16 @@ 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 -r 54fe21c3fc77 -r 4201b5881a7e scripts/build/binutils/binutils.sh --- a/scripts/build/binutils/binutils.sh Thu Feb 18 00:04:48 2010 +0100 +++ b/scripts/build/binutils/binutils.sh Tue Feb 09 22:50:53 2010 +0100 @@ -85,9 +85,8 @@ 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