binutils/binutils: fix using GMP and MPFR
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Feb 09 22:50:53 2010 +0100 (2010-02-09)
changeset 18074201b5881a7e
parent 1806 54fe21c3fc77
child 1808 a1370757e6a1
binutils/binutils: fix using GMP and MPFR
config/binutils/binutils.in
scripts/build/binutils/binutils.sh
     1.1 --- a/config/binutils/binutils.in	Thu Feb 18 00:04:48 2010 +0100
     1.2 +++ b/config/binutils/binutils.in	Tue Feb 09 22:50:53 2010 +0100
     1.3 @@ -75,4 +75,16 @@
     1.4      prompt "libbfd"
     1.5      default y
     1.6  
     1.7 +config BINUTILS_TARGET_USE_GMP_MPFR
     1.8 +    bool
     1.9 +    prompt "Use GMP and MPFR"
    1.10 +    default n
    1.11 +    select GMP_MPFR
    1.12 +    select COMP_LIBS_TARGET
    1.13 +    help
    1.14 +      binutils can be configured to use GMP and MPFR.
    1.15 +      While this is automatically handled for the cross-binutils,
    1.16 +      You have to explicitly state so for the native libraries that
    1.17 +      will run on the target.
    1.18 +
    1.19  endif # BINUTILS_FOR_TARGET
     2.1 --- a/scripts/build/binutils/binutils.sh	Thu Feb 18 00:04:48 2010 +0100
     2.2 +++ b/scripts/build/binutils/binutils.sh	Tue Feb 09 22:50:53 2010 +0100
     2.3 @@ -85,9 +85,8 @@
     2.4          install_targets+=("install-${t}")
     2.5      done
     2.6  
     2.7 -
     2.8      # If GMP and MPFR were configured, then use that
     2.9 -    if [ "${CT_GMP_MPFR_TARGET}" = "y" ]; then
    2.10 +    if [ "${CT_BINUTILS_TARGET_USE_GMP_MPFR}" = "y" ]; then
    2.11          extra_config+=("--with-gmp=${CT_SYSROOT_DIR}/usr")
    2.12          extra_config+=("--with-mpfr=${CT_SYSROOT_DIR}/usr")
    2.13      fi