summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-02-09 21:50:53 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-02-09 21:50:53 (GMT)
commitc6689215d15cba83404b6f4e67ddedb2c2ea1a48 (patch)
tree05394b02e02859c8709bdb22c9d15b77725bf41d
parent26e5cb40217da4f1f676627131fa025af5c0c3ad (diff)
binutils/binutils: fix using GMP and MPFR
-rw-r--r--config/binutils/binutils.in12
-rw-r--r--scripts/build/binutils/binutils.sh3
2 files changed, 13 insertions, 2 deletions
diff --git a/config/binutils/binutils.in b/config/binutils/binutils.in
index 11b09c7..ce728f1 100644
--- a/config/binutils/binutils.in
+++ b/config/binutils/binutils.in
@@ -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
diff --git a/scripts/build/binutils/binutils.sh b/scripts/build/binutils/binutils.sh
index ec9c409..938c369 100644
--- a/scripts/build/binutils/binutils.sh
+++ b/scripts/build/binutils/binutils.sh
@@ -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