From a0d12310cbd1fca174e28e7ac6b0c2f1a7f0f589 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Tue, 12 Jan 2021 17:34:44 +0100
Subject: [PATCH] macOS/use_dll: drop -mmacosx-version-min=10.9 flag

The MEX files are not intended for distribution to other systems.
---
 src/ModelTree.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ModelTree.cc b/src/ModelTree.cc
index 9b154e2d..d7fe7e97 100644
--- a/src/ModelTree.cc
+++ b/src/ModelTree.cc
@@ -2050,7 +2050,7 @@ ModelTree::compileMEX(const string &basename, const string &funcname, const stri
               exit(EXIT_FAILURE);
             }
 #endif
-          flags << " -fno-common -mmacosx-version-min=10.9 -Wl,-twolevel_namespace -undefined error -bundle";
+          flags << " -fno-common -Wl,-twolevel_namespace -undefined error -bundle";
           libs += " -lm -lstdc++";
         }
     }
-- 
GitLab