mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-03-11 06:54:06 +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"
|
prompt "libbfd"
|
||||||
default y
|
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
|
endif # BINUTILS_FOR_TARGET
|
||||||
|
@ -85,9 +85,8 @@ do_binutils_target() {
|
|||||||
install_targets+=("install-${t}")
|
install_targets+=("install-${t}")
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
# If GMP and MPFR were configured, then use that
|
# 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-gmp=${CT_SYSROOT_DIR}/usr")
|
||||||
extra_config+=("--with-mpfr=${CT_SYSROOT_DIR}/usr")
|
extra_config+=("--with-mpfr=${CT_SYSROOT_DIR}/usr")
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user