Unverified Commit f104b9d5 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Windows package: statically link MatIO and GSL in Octave MEX files

Closes: #1750
parent 426e52e2
......@@ -94,6 +94,15 @@ fi
AC_CHECK_LIB([umfpack], [umfpack_dl_defaults], [LIBADD_UMFPACK="-lumfpack"], [AC_MSG_ERROR([Can't find UMFPACK])])
# On Windows, we want static linking of the external libraries
case ${host_os} in
GSL_LIBS="-Wl,-Bstatic $GSL_LIBS -Wl,-Bdynamic"
LIBADD_MATIO="-Wl,-Bstatic $LIBADD_MATIO -Wl,-Bdynamic"
LIBADD_SLICOT="-Wl,-Bstatic $LIBADD_SLICOT -Wl,-Bdynamic"
# Construct final output message
if test "$enable_mex_dynareplusplus" = yes; then
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