diff --git a/m4/ax_mexopts.m4 b/m4/ax_mexopts.m4 index e788513453965937bd46023f36f1f05c47f13c8b..eff7dc0c905bca5d65a738def4883795cc5bc7be 100644 --- a/m4/ax_mexopts.m4 +++ b/m4/ax_mexopts.m4 @@ -65,12 +65,11 @@ case ${MATLAB_ARCH} in ax_mexopts_ok="yes" ;; maci64) - MACOSX_DEPLOYMENT_TARGET='10.9' MATLAB_DEFS="$MATLAB_DEFS -DNDEBUG" - MATLAB_CFLAGS="-fno-common -mmacosx-version-min=$MACOSX_DEPLOYMENT_TARGET -fexceptions" + MATLAB_CFLAGS="-fno-common -fexceptions" MATLAB_CXXFLAGS="$MATLAB_CFLAGS" MATLAB_FCFLAGS="-g -O2 -fexceptions -fbackslash" - MATLAB_LDFLAGS_NOMAP="-Wl,-twolevel_namespace -undefined error -mmacosx-version-min=$MACOSX_DEPLOYMENT_TARGET -bundle" + MATLAB_LDFLAGS_NOMAP="-Wl,-twolevel_namespace -undefined error -bundle" MATLAB_LDFLAGS="$MATLAB_LDFLAGS_NOMAP -Wl,-exported_symbols_list,\$(abs_top_srcdir)/mexFunction-MacOSX.map" # This -L flag is put here, hence later on the linker command line, so as # to avoid linking against the HDF5 shipped by MATLAB (which would