4.1 preprocessor: exporting "Dynamic" symbol is necessary only in Windows; added test for ispc
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3209 ac1d8469-bf42-47a9-8791-bf33cf982152issue#70
parent
fc719ad8c7
commit
131c90ceba
|
@ -296,7 +296,7 @@ ModFile::writeOutputFiles(const string &basename, bool clear_all) const
|
||||||
|
|
||||||
// Compile the dynamic MEX file for use_dll option
|
// Compile the dynamic MEX file for use_dll option
|
||||||
if (use_dll)
|
if (use_dll)
|
||||||
mOutputFile << "if ~exist('OCTAVE_VERSION')" << endl
|
mOutputFile << "if ~exist('OCTAVE_VERSION') && ispc" << endl
|
||||||
<< " eval('mex -O LINKER=''echo EXPORTS > mex.def & echo mexFunction & echo Dynamic >> mex.def & gcc-3'' LDFLAGS=''-pthread -shared -Wl,--no-undefined'' " << basename << "_dynamic.c')" << endl // This command is enclosed in an eval(), because otherwise it will make Octave fail
|
<< " eval('mex -O LINKER=''echo EXPORTS > mex.def & echo mexFunction & echo Dynamic >> mex.def & gcc-3'' LDFLAGS=''-pthread -shared -Wl,--no-undefined'' " << basename << "_dynamic.c')" << endl // This command is enclosed in an eval(), because otherwise it will make Octave fail
|
||||||
<< "else" << endl
|
<< "else" << endl
|
||||||
<< " mex " << basename << "_dynamic.c" << endl
|
<< " mex " << basename << "_dynamic.c" << endl
|
||||||
|
|
Loading…
Reference in New Issue