binutils/binutils: fix using GMP and MPFR

This commit is contained in:
Yann E. MORIN" 2010-02-09 22:50:53 +01:00
parent 26e5cb4021
commit c6689215d1
2 changed files with 13 additions and 2 deletions

View File

@ -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

View File

@ -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