mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-06-17 14:58:12 +00:00
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>
This commit is contained in:
@ -81,16 +81,4 @@ config BINUTILS_FOR_TARGET_BFD
|
|||||||
prompt "libbfd"
|
prompt "libbfd"
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config BINUTILS_TARGET_USE_GMP_MPFR
|
|
||||||
bool
|
|
||||||
prompt "Use GMP and MPFR"
|
|
||||||
default n
|
|
||||||
select GMP_TARGET
|
|
||||||
select MPFR_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
|
endif # BINUTILS_FOR_TARGET
|
||||||
|
@ -24,11 +24,6 @@ do_binutils() {
|
|||||||
|
|
||||||
CT_DoStep INFO "Installing binutils"
|
CT_DoStep INFO "Installing binutils"
|
||||||
|
|
||||||
# If GMP and MPFR were configured, then use that,
|
|
||||||
# otherwise let binutils find the system-wide libraries, if they exist.
|
|
||||||
[ -z "${CT_GMP}" ] || extra_config+=("--with-gmp=${CT_PREFIX_DIR}")
|
|
||||||
[ -z "${CT_MPFR}" ] || extra_config+=("--with-mpfr=${CT_PREFIX_DIR}")
|
|
||||||
|
|
||||||
CT_DoLog EXTRA "Configuring binutils"
|
CT_DoLog EXTRA "Configuring binutils"
|
||||||
CFLAGS="${CT_CFLAGS_FOR_HOST}" \
|
CFLAGS="${CT_CFLAGS_FOR_HOST}" \
|
||||||
CT_DoExecLog ALL \
|
CT_DoExecLog ALL \
|
||||||
@ -83,12 +78,6 @@ do_binutils_target() {
|
|||||||
install_targets+=("install-${t}")
|
install_targets+=("install-${t}")
|
||||||
done
|
done
|
||||||
|
|
||||||
# If GMP and MPFR were configured, then use that
|
|
||||||
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
|
|
||||||
|
|
||||||
if [ "${#targets[@]}" -ne 0 ]; then
|
if [ "${#targets[@]}" -ne 0 ]; then
|
||||||
CT_DoStep INFO "Installing binutils for target"
|
CT_DoStep INFO "Installing binutils for target"
|
||||||
mkdir -p "${CT_BUILD_DIR}/build-binutils-for-target"
|
mkdir -p "${CT_BUILD_DIR}/build-binutils-for-target"
|
||||||
|
Reference in New Issue
Block a user