# HG changeset patch # User "Yann E. MORIN" # Date 1234037473 0 # Node ID ba2189b34eac769253c8da1001a54d07cb1e4254 # Parent f85841495a869d0147a97c75b4767018b080dd26 Make MPFR build under Cygwin. /trunk/scripts/build/mpfr.sh | 24 20 4 0 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff -r f85841495a86 -r ba2189b34eac scripts/build/mpfr.sh --- a/scripts/build/mpfr.sh Sat Feb 07 13:36:42 2009 +0000 +++ b/scripts/build/mpfr.sh Sat Feb 07 20:11:13 2009 +0000 @@ -56,6 +56,13 @@ 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 @@ --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 @@ 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 @@ --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"