Commit 02d388d6 authored by michel's avatar michel

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
parent 177da869
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment