diff --git a/m4/ax_mexopts.m4 b/m4/ax_mexopts.m4 index a4a1e93b8..21b1af55d 100644 --- a/m4/ax_mexopts.m4 +++ b/m4/ax_mexopts.m4 @@ -61,6 +61,7 @@ case ${MATLAB_ARCH} in LIBLOC="$MATLAB/extern/lib/${MATLAB_ARCH}/microsoft" ;; esac + MATLAB_DEFS="$MATLAB_DEFS -DNDEBUG" MATLAB_LDFLAGS="-static-libgcc -shared \$(top_srcdir)/mex.def" MATLAB_LIBS="$LIBLOC/libmex.lib $LIBLOC/libmx.lib $LIBLOC/libmwlapack.lib" # Starting from MATLAB 7.5, BLAS and LAPACK are in distinct libraries