# HG changeset patch # User "Yann E. MORIN" # Date 1213953426 0 # Node ID 3ea35558d659f7987aa2702d3f5fd2adf920119f # Parent 1854f2c508a89055a35569fb51f8a7d1d5338867 Only rebuild MPFR config files at extract time, not for every builds. /trunk/scripts/build/mpfr.sh | 15 7 8 0 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff -r 1854f2c508a8 -r 3ea35558d659 scripts/build/mpfr.sh --- a/scripts/build/mpfr.sh Fri Jun 20 07:44:14 2008 +0000 +++ b/scripts/build/mpfr.sh Fri Jun 20 09:17:06 2008 +0000 @@ -18,13 +18,6 @@ # Extract MPFR do_mpfr_extract() { CT_ExtractAndPatch "${CT_MPFR_FILE}" -} - -do_mpfr() { - mkdir -p "${CT_BUILD_DIR}/build-mpfr" - cd "${CT_BUILD_DIR}/build-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 @@ -33,11 +26,17 @@ # 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" CT_Pushd "${CT_SRC_DIR}/${CT_MPFR_FILE}" autoreconf -fi 2>&1 |CT_DoLog ALL libtoolize 2>&1 |CT_DoLog ALL CT_Popd +} + +do_mpfr() { + mkdir -p "${CT_BUILD_DIR}/build-mpfr" + cd "${CT_BUILD_DIR}/build-mpfr" + + CT_DoStep INFO "Installing MPFR" CT_DoLog EXTRA "Configuring MPFR" CFLAGS="${CT_CFLAGS_FOR_HOST}" \