Fix problem with USE_DLL under Octave 3.2 (closes #70)
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3269 ac1d8469-bf42-47a9-8791-bf33cf982152issue#70
parent
a33bcad666
commit
80e8c10327
|
@ -318,8 +318,11 @@ ModFile::writeOutputFiles(const string &basename, bool clear_all
|
||||||
mOutputFile << " eval('mex -O LDFLAGS=''-Wl,-twolevel_namespace -undefined error -arch \\$ARCHS -Wl,-syslibroot,\\$SDKROOT -mmacosx-version-min=\\$MACOSX_DEPLOYMENT_TARGET -bundle'' " << basename << "_dynamic.c')" << endl; // MATLAB/MacOS
|
mOutputFile << " eval('mex -O LDFLAGS=''-Wl,-twolevel_namespace -undefined error -arch \\$ARCHS -Wl,-syslibroot,\\$SDKROOT -mmacosx-version-min=\\$MACOSX_DEPLOYMENT_TARGET -bundle'' " << basename << "_dynamic.c')" << endl; // MATLAB/MacOS
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
mOutputFile << "else" << endl
|
mOutputFile << "else" << endl // Octave
|
||||||
<< " mex " << basename << "_dynamic.c" << endl // Octave
|
<< " if ~octave_ver_less_than('3.2.0')" << endl // Workaround for bug in Octave >= 3.2, see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=550823
|
||||||
|
<< " sleep(2)" << endl
|
||||||
|
<< " end" << endl
|
||||||
|
<< " mex " << basename << "_dynamic.c" << endl
|
||||||
<< "end" << endl;
|
<< "end" << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue