From 2e0b9c9e3106a9fdbc793902ad5b065edaada238 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Sat, 7 Feb 2009 20:11:13 +0000 Subject: Make MPFR build under Cygwin. /trunk/scripts/build/mpfr.sh | 24 20 4 0 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/scripts/build/mpfr.sh b/scripts/build/mpfr.sh index 032e5d6..40b7939 100644 --- a/scripts/build/mpfr.sh +++ b/scripts/build/mpfr.sh @@ -56,6 +56,13 @@ do_mpfr() { CT_DoStep INFO "Installing MPFR" + mpfr_opt= + # Under Cygwin, wa can't bnuild a thread-safe library + case "${CT_HOST}" in + *-cygwin) mpfr_opt="--disable-thread-safe";; + *) mpfr_opt="--enable-thread-safe";; + esac + CT_DoLog EXTRA "Configuring MPFR" CFLAGS="${CT_CFLAGS_FOR_HOST}" \ CT_DoExecLog ALL \ @@ -63,8 +70,9 @@ do_mpfr() { --build=${CT_BUILD} \ --host=${CT_HOST} \ --prefix="${CT_PREFIX_DIR}" \ - --enable-thread-safe \ - --disable-shared --enable-static \ + ${mpfr_opt} \ + --disable-shared \ + --enable-static \ --with-gmp="${CT_PREFIX_DIR}" CT_DoLog EXTRA "Building MPFR" @@ -89,6 +97,13 @@ do_mpfr_target() { CT_DoStep INFO "Installing MPFR for the target" + mpfr_opt= + # Under Cygwin, wa can't bnuild a thread-safe library + case "${CT_TARGET}" in + *-cygwin) mpfr_opt="--disable-thread-safe";; + *) mpfr_opt="--enable-thread-safe";; + esac + CT_DoLog EXTRA "Configuring MPFR" CFLAGS="${CT_CFLAGS_FOR_TARGET}" \ CT_DoExecLog ALL \ @@ -96,8 +111,9 @@ do_mpfr_target() { --build=${CT_BUILD} \ --host=${CT_TARGET} \ --prefix=/usr \ - --enable-thread-safe \ - --disable-shared --enable-static \ + ${mpfr_opt} \ + --disable-shared \ + --enable-static \ --with-gmp="${CT_SYSROOT_DIR}/usr" CT_DoLog EXTRA "Building MPFR" -- cgit v0.10.2-6-g49f6