summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-06-19 21:54:57 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-06-19 21:54:57 (GMT)
commit45117f345ba52c4fc15adae93ad8e5a5197ca6d4 (patch)
tree44d4619349d09c68ffec0607147e53fa173606a2 /scripts
parent3950f8e87d5717bdb5e3bcdac69a544cef8efd28 (diff)
Fix building MPFR on distro that have strict sanity checks on libtool.m4 and ltmain.sh versions mismatch. UNTESTED!
/trunk/scripts/build/mpfr.sh | 11 11 0 0 +++++++++++ 1 file changed, 11 insertions(+)
Diffstat (limited to 'scripts')
-rw-r--r--scripts/build/mpfr.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/build/mpfr.sh b/scripts/build/mpfr.sh
index 9519776..d6cd6ab 100644
--- a/scripts/build/mpfr.sh
+++ b/scripts/build/mpfr.sh
@@ -26,6 +26,17 @@ do_mpfr() {
CT_DoStep INFO "Installing MPFR"
+ # OK, Gentoo have a sanity check that libtool.m4 and ltmain.sh have the
+ # same version number. Unfortunately, some tarballs of MPFR are not
+ # built sanely, and thus ./configure fails on Gentoo.
+ # See: http://sourceware.org/ml/crossgcc/2008-05/msg00080.html
+ # and: http://sourceware.org/ml/crossgcc/2008-06/msg00005.html
+ # This hack is not bad per se, but the MPFR guys would be better to not
+ # do that in the future...
+ CT_DoLog EXTRA "Re-building configuration files"
+ autoreconf -fi 2>&1 |CT_DoLog ALL
+ libtoolize 2>&1 |CT_DoLog ALL
+
CT_DoLog EXTRA "Configuring MPFR"
CFLAGS="${CT_CFLAGS_FOR_HOST}" \
"${CT_SRC_DIR}/${CT_MPFR_FILE}/configure" \