Skip to content
Snippets Groups Projects
Verified Commit 0345eb57 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
(cherry picked from commit f104b9d5)
parent baa97edc
Branches
Tags
1 merge request!1815WIP Cherry-picks for 4.6
......@@ -93,6 +93,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