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 ...@@ -94,6 +94,15 @@ fi
AC_CHECK_LIB([umfpack], [umfpack_dl_defaults], [LIBADD_UMFPACK="-lumfpack"], [AC_MSG_ERROR([Can't find UMFPACK])]) AC_CHECK_LIB([umfpack], [umfpack_dl_defaults], [LIBADD_UMFPACK="-lumfpack"], [AC_MSG_ERROR([Can't find UMFPACK])])
AC_SUBST([LIBADD_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 # Construct final output message
if test "$enable_mex_dynareplusplus" = yes; then if test "$enable_mex_dynareplusplus" = yes; then
BUILD_GENSYLV_KORDER_DYNSIMUL_MEX_OCTAVE="yes" BUILD_GENSYLV_KORDER_DYNSIMUL_MEX_OCTAVE="yes"
......
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