binutils/binutils: companion libraries are not used
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Aug 23 20:21:43 2010 +0200 (2010-08-23)
changeset 2097056a2c826185
parent 2096 5f01a23be1e4
child 2098 9a8f0e3fe605
binutils/binutils: companion libraries are not used

GNU binutils does not use the companion libraries, although
./configure advertises switches for them. This is because the
configure file is shared between different packages, and is
a bit 'lax' about what it checks. See:
http://sourceware.org/ml/crossgcc/2010-08/msg00160.html
http://sourceware.org/ml/crossgcc/2010-08/msg00161.html

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
config/binutils/binutils.in
scripts/build/binutils/binutils.sh
     1.1 --- a/config/binutils/binutils.in	Thu Aug 26 23:36:54 2010 +0200
     1.2 +++ b/config/binutils/binutils.in	Mon Aug 23 20:21:43 2010 +0200
     1.3 @@ -81,16 +81,4 @@
     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_TARGET
    1.12 -    select MPFR_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 Aug 26 23:36:54 2010 +0200
     2.2 +++ b/scripts/build/binutils/binutils.sh	Mon Aug 23 20:21:43 2010 +0200
     2.3 @@ -24,11 +24,6 @@
     2.4  
     2.5      CT_DoStep INFO "Installing binutils"
     2.6  
     2.7 -    # If GMP and MPFR were configured, then use that,
     2.8 -    # otherwise let binutils find the system-wide libraries, if they exist.
     2.9 -    [ -z "${CT_GMP}"    ] || extra_config+=("--with-gmp=${CT_PREFIX_DIR}")
    2.10 -    [ -z "${CT_MPFR}"   ] || extra_config+=("--with-mpfr=${CT_PREFIX_DIR}")
    2.11 -
    2.12      CT_DoLog EXTRA "Configuring binutils"
    2.13      CFLAGS="${CT_CFLAGS_FOR_HOST}"                              \
    2.14      CT_DoExecLog ALL                                            \
    2.15 @@ -83,12 +78,6 @@
    2.16          install_targets+=("install-${t}")
    2.17      done
    2.18  
    2.19 -    # If GMP and MPFR were configured, then use that
    2.20 -    if [ "${CT_BINUTILS_TARGET_USE_GMP_MPFR}" = "y" ]; then
    2.21 -        extra_config+=("--with-gmp=${CT_SYSROOT_DIR}/usr")
    2.22 -        extra_config+=("--with-mpfr=${CT_SYSROOT_DIR}/usr")
    2.23 -    fi
    2.24 -
    2.25      if [ "${#targets[@]}" -ne 0 ]; then
    2.26          CT_DoStep INFO "Installing binutils for target"
    2.27          mkdir -p "${CT_BUILD_DIR}/build-binutils-for-target"