Ensure that -lpthread is statically linked under MinGW.
parent
7c4cc82012
commit
9d32204790
|
@ -163,6 +163,12 @@ fi
|
|||
AM_CONDITIONAL([HAVE_BLAS], [test x"$ax_blas_ok" = "xyes"])
|
||||
AM_CONDITIONAL([HAVE_LAPACK], [test x"$ax_lapack_ok" = "xyes"])
|
||||
|
||||
case ${host_os} in
|
||||
*mingw32*)
|
||||
# Ensure that -lpthread is statically linked under MinGW
|
||||
PTHREAD_LIBS="-Wl,-Bstatic -lpthread -Wl,-Bdynamic"
|
||||
;;
|
||||
esac
|
||||
AX_PTHREAD
|
||||
|
||||
AC_CONFIG_FILES([Makefile
|
||||
|
|
|
@ -60,7 +60,15 @@ AC_PROG_RANLIB
|
|||
AX_PROG_LN_S
|
||||
AC_PROG_MKDIR_P
|
||||
AM_PROG_AR
|
||||
|
||||
case ${host_os} in
|
||||
*mingw32*)
|
||||
# Ensure that -lpthread is statically linked under MinGW
|
||||
PTHREAD_LIBS="-Wl,-Bstatic -lpthread -Wl,-Bdynamic"
|
||||
;;
|
||||
esac
|
||||
AX_PTHREAD
|
||||
|
||||
# Check for boost libraries used in estimation DLL
|
||||
AC_LANG_PUSH([C++])
|
||||
AX_BOOST_BASE([1.36], [], [AC_MSG_ERROR([Can't find Boost >= 1.36])])
|
||||
|
|
Loading…
Reference in New Issue