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
time-shift
michel 2009-04-25 13:06:36 +00:00
parent 057e9b157a
commit af69c4d6a5
1 changed files with 1 additions and 1 deletions

View File

@ -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