Skip to content
Snippets Groups Projects
Commit 572f521b authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Build system: for MEX files under Windows+MATLAB, link with -lmat

parent 07a0ef1a
No related branches found
Tags
No related merge requests found
...@@ -54,7 +54,7 @@ case ${MATLAB_ARCH} in ...@@ -54,7 +54,7 @@ case ${MATLAB_ARCH} in
MATLAB_DEFS="$MATLAB_DEFS -DNDEBUG" MATLAB_DEFS="$MATLAB_DEFS -DNDEBUG"
# Note that static-libstdc++ is only supported since GCC 4.5 (but generates no error on older versions) # Note that static-libstdc++ is only supported since GCC 4.5 (but generates no error on older versions)
MATLAB_LDFLAGS="-static-libgcc -static-libstdc++ -shared \$(top_srcdir)/mex.def -L$MATLAB/bin/${MATLAB_ARCH}" MATLAB_LDFLAGS="-static-libgcc -static-libstdc++ -shared \$(top_srcdir)/mex.def -L$MATLAB/bin/${MATLAB_ARCH}"
MATLAB_LIBS="-lmex -lmx -lmwlapack" MATLAB_LIBS="-lmex -lmx -lmat -lmwlapack"
# Starting from MATLAB 7.5, BLAS and LAPACK are in distinct libraries # Starting from MATLAB 7.5, BLAS and LAPACK are in distinct libraries
AX_COMPARE_VERSION([$MATLAB_VERSION], [ge], [7.5], [MATLAB_LIBS="${MATLAB_LIBS} -lmwblas"]) AX_COMPARE_VERSION([$MATLAB_VERSION], [ge], [7.5], [MATLAB_LIBS="${MATLAB_LIBS} -lmwblas"])
ax_mexopts_ok="yes" ax_mexopts_ok="yes"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment