From 86f866a39e75bd450a56472c80148f1d618b42f4 Mon Sep 17 00:00:00 2001 From: sebastien Date: Thu, 24 Sep 2009 16:23:29 +0000 Subject: [PATCH] Build system: update for MATLAB MEX files under MacOS X git-svn-id: https://www.dynare.org/svn/dynare/trunk@2978 ac1d8469-bf42-47a9-8791-bf33cf982152 --- m4/ax_mexopts.m4 | 2 +- mex/build/Makefile.am | 2 +- mex/build/mexFunction-MacOSX.map | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 mex/build/mexFunction-MacOSX.map 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