chiark / gitweb /
added --with-mthreads option to use -mthreads flag when building MinGW, since that...
authorstevenj <stevenj@alum.mit.edu>
Wed, 16 Jun 2010 23:10:06 +0000 (19:10 -0400)
committerstevenj <stevenj@alum.mit.edu>
Wed, 16 Jun 2010 23:10:06 +0000 (19:10 -0400)
darcs-hash:20100616231006-c8de0-4b0e74542f7fc4a99d65d452be1bb9393d9514ae.gz

BUILD-MINGW.sh
configure.ac

index ef284e12afc6fd41ef31e0d6b9f3dcfebce5e2d3..ced6dc48376cc964aace3db255cad61a861717b9 100755 (executable)
@@ -3,7 +3,7 @@ set -e
 
 rm -rf mingw
 
-./configure --prefix=`pwd`/mingw --host=i586-mingw32msvc --enable-shared --disable-static --without-matlab --without-octave --without-python --without-guile && make -j4 && make install
+./configure --prefix=`pwd`/mingw --host=i586-mingw32msvc --with-mthreads --enable-shared --disable-static --without-matlab --without-octave --without-python --without-guile && make -j4 && make install
 
 cd mingw/bin
 for dll in *.dll; do
index b9060ebb25d285e5154e0551de633eede29816f3..507a07cc5eb94e6171c9406d9bbb8e433fc44184 100644 (file)
@@ -33,6 +33,14 @@ if test "x$with_cxx" = xyes; then
 fi
 AC_SUBST(NLOPT_SUFFIX)
 
+AC_ARG_WITH(mthreads,
+        [AC_HELP_STRING([--with-mthreads], [use -mthreads compiler flag])],
+        with_mthrads=$withval,with_mthreads=no)
+if test "x$with_mthreads" = xyes; then
+   CFLAGS="$CFLAGS -mthreads"
+   CXXFLAGS="$CXXFLAGS -mthreads"
+fi
+
 dnl Checks for typedefs, structures, and compiler characteristics.
 AC_HEADER_STDC
 AC_HEADER_TIME