From 375f65d946306448537042e284c7f02d1a949875 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= Date: Wed, 18 Aug 2010 16:01:16 +0200 Subject: [PATCH] Build system: add NDEBUG flag under Windows for MEX files, for consistency with other platforms --- m4/ax_mexopts.m4 | 1 + 1 file changed, 1 insertion(+) 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