mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-21 21:57:48 +00:00
binutils/binutils: fix using GMP and MPFR
This commit is contained in:
parent
26e5cb4021
commit
c6689215d1
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user