From 29bb140297e43bd6971ba2815c31b3b662baf44d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org> Date: Tue, 12 Jan 2021 17:41:08 +0100 Subject: [PATCH] macOS: drop -mmacosx-version-min compilation flag Currently it is not applied consistently to all binaries we produce. Moreover we do not really have a way to test support for older macOS versions. If there are problems, we might reintroduce this flag later, but we will have to it consistently across all binaries. --- m4/ax_mexopts.m4 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/m4/ax_mexopts.m4 b/m4/ax_mexopts.m4 index e788513453..eff7dc0c90 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 -- GitLab