Skip to content
Snippets Groups Projects
Verified 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
Branches
Tags
No related merge requests found
......@@ -94,6 +94,15 @@ fi
AC_CHECK_LIB([umfpack], [umfpack_dl_defaults], [LIBADD_UMFPACK="-lumfpack"], [AC_MSG_ERROR([Can't find UMFPACK])])
AC_SUBST([LIBADD_UMFPACK])
# On Windows, we want static linking of the external libraries
case ${host_os} in
*mingw32*)
GSL_LIBS="-Wl,-Bstatic $GSL_LIBS -Wl,-Bdynamic"
LIBADD_MATIO="-Wl,-Bstatic $LIBADD_MATIO -Wl,-Bdynamic"
LIBADD_SLICOT="-Wl,-Bstatic $LIBADD_SLICOT -Wl,-Bdynamic"
;;
esac
# Construct final output message
if test "$enable_mex_dynareplusplus" = yes; then
BUILD_GENSYLV_KORDER_DYNSIMUL_MEX_OCTAVE="yes"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment