diff --git a/m4/ax_mexopts.m4 b/m4/ax_mexopts.m4 index 57a47c33a..d4362971b 100644 --- a/m4/ax_mexopts.m4 +++ b/m4/ax_mexopts.m4 @@ -75,7 +75,7 @@ case ${MATLAB_ARCH} in fi MATLAB_DEFS="$MATLAB_DEFS -DNDEBUG" MATLAB_CFLAGS="-fno-common -no-cpp-precomp -arch $ARCHS -isysroot $SDKROOT -mmacosx-version-min=$MACOSX_DEPLOYMENT_TARGET -fexceptions -O2" - MATLAB_LDFLAGS="-L$MATLAB/bin/${MATLAB_ARCH} -Wl,-twolevel_namespace -undefined error -arch $ARCHS -Wl,-syslibroot,$SDKROOT -mmacosx-version-min=$MACOSX_DEPLOYMENT_TARGET -bundle -Wl,-exported_symbols_list,$MATLAB/extern/lib/${MATLAB_ARCH}/mexFunction.map" + MATLAB_LDFLAGS="-L$MATLAB/bin/${MATLAB_ARCH} -Wl,-twolevel_namespace -undefined error -arch $ARCHS -Wl,-syslibroot,$SDKROOT -mmacosx-version-min=$MACOSX_DEPLOYMENT_TARGET -bundle -Wl,-exported_symbols_list,\$(top_srcdir)/mex/build/mexFunction-MacOSX.map" MATLAB_LIBS="-lmx -lmex -lmat -lstdc++ -lmwlapack" MATLAB_CXX="g++-4.0" MATLAB_CXXFLAGS="-fno-common -no-cpp-precomp -fexceptions -arch $ARCHS -isysroot $SDKROOT -mmacosx-version-min=$MACOSX_DEPLOYMENT_TARGET -O2" diff --git a/mex/build/Makefile.am b/mex/build/Makefile.am index 7bddddfad..de26e02e6 100644 --- a/mex/build/Makefile.am +++ b/mex/build/Makefile.am @@ -22,4 +22,4 @@ endif endif -EXTRA_DIST = mex.def +EXTRA_DIST = mex.def mexFunction-MacOSX.map diff --git a/mex/build/mexFunction-MacOSX.map b/mex/build/mexFunction-MacOSX.map new file mode 100644 index 000000000..04be9d06c --- /dev/null +++ b/mex/build/mexFunction-MacOSX.map @@ -0,0 +1 @@ +_mexFunction