summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-02-07 20:11:13 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-02-07 20:11:13 (GMT)
commit2e0b9c9e3106a9fdbc793902ad5b065edaada238 (patch)
tree13b2c20ed70a075951ef1c11ad764eb31898b93e /scripts
parent13ef608d83d4ca012351cca36f834cf2067c72cd (diff)
Make MPFR build under Cygwin.
/trunk/scripts/build/mpfr.sh | 24 20 4 0 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-)
Diffstat (limited to 'scripts')
-rw-r--r--scripts/build/mpfr.sh24
1 files 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"