From 02d388d6b9dae5fdfee30d96abf790d130b5bff2 Mon Sep 17 00:00:00 2001 From: michel <michel@ac1d8469-bf42-47a9-8791-bf33cf982152> Date: Sat, 25 Apr 2009 13:06:36 +0000 Subject: [PATCH] 4.1: changed mex LDFLAGS option for compiling *_dynamics.c to make the Dynamic function public. This most likely makes it unusable for compilers other than gcc git-svn-id: https://www.dynare.org/svn/dynare/trunk@2632 ac1d8469-bf42-47a9-8791-bf33cf982152 --- ModFile.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ModFile.cc b/ModFile.cc index 0af95d2b..043e4024 100644 --- a/ModFile.cc +++ b/ModFile.cc @@ -234,7 +234,7 @@ ModFile::writeOutputFiles(const string &basename, bool clear_all) const mOutputFile << "end" << endl; mOutputFile << "if exist('" << basename << "_dynamic.c')" << endl; mOutputFile << " clear " << basename << "_dynamic" << endl; - mOutputFile << " mex -O " << basename << "_dynamic.c" << endl; + mOutputFile << " mex -O LDFLAGS='-pthread -shared -Wl,--no-undefined' " << basename << "_dynamic.c" << endl; mOutputFile << "end" << endl; } else -- GitLab