Verified Commit afc9f948 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

On Windows, statically link the pthread library

Otherwise the DLL is dynamically linked against libwinpthread. This regression
was introduced by commit 671fe4bc.
parent f630bc31
......@@ -95,7 +95,9 @@ AM_CONDITIONAL([HAVE_SLICOT], [test "x$has_slicot" = "xyes"])
# On Windows, we want static linking of the external libraries
case ${host_os} in
PTHREAD_LIBS="-Wl,-Bstatic $PTHREAD_LIBS -Wl,-Bdynamic"
# We hardcode -lpthread here, otherwise it is not detected by the
# AX_PTHREAD macro and therefore not statically linked
PTHREAD_LIBS="-Wl,-Bstatic -lpthread -Wl,-Bdynamic"
GSL_LIBS="-Wl,-Bstatic $GSL_LIBS -Wl,-Bdynamic"
LIBADD_MATIO="-Wl,-Bstatic $LIBADD_MATIO -Wl,-Bdynamic"
LIBADD_SLICOT="-Wl,-Bstatic $LIBADD_SLICOT -Wl,-Bdynamic"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment