Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dynare
preprocessor
Commits
1d7646a6
Commit
1d7646a6
authored
Dec 10, 2013
by
Houtan Bastani
Browse files
For Matlab >= 2013a on osx, use renamed SDKROOT macro, MW_SDKROOT
parent
973f20da
Changes
1
Hide whitespace changes
Inline
Side-by-side
ModFile.cc
View file @
1d7646a6
...
...
@@ -685,10 +685,17 @@ ModFile::writeOutputFiles(const string &basename, bool clear_all, bool no_log, b
<<
" eval('mex -O LDFLAGS=''-pthread -shared -Wl,--no-undefined'' "
<<
basename
<<
"_static.c "
<<
basename
<<
"_static_mex.c')"
<<
endl
;
# else // MacOS
// MATLAB/MacOS
mOutputFile
<<
" eval('mex -O LDFLAGS=''-Wl,-twolevel_namespace -undefined error -arch
\\
$ARCHS -Wl,-syslibroot,
\\
$SDKROOT -mmacosx-version-min=
\\
$MACOSX_DEPLOYMENT_TARGET -bundle'' "
mOutputFile
<<
" if matlab_ver_less_than('8.1')"
<<
endl
;
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 "
<<
basename
<<
"_dynamic_mex.c')"
<<
endl
<<
" eval('mex -O LDFLAGS=''-Wl,-twolevel_namespace -undefined error -arch
\\
$ARCHS -Wl,-syslibroot,
\\
$SDKROOT -mmacosx-version-min=
\\
$MACOSX_DEPLOYMENT_TARGET -bundle'' "
<<
"
eval('mex -O LDFLAGS=''-Wl,-twolevel_namespace -undefined error -arch
\\
$ARCHS -Wl,-syslibroot,
\\
$SDKROOT -mmacosx-version-min=
\\
$MACOSX_DEPLOYMENT_TARGET -bundle'' "
<<
basename
<<
"_static.c "
<<
basename
<<
"_static_mex.c')"
<<
endl
;
mOutputFile
<<
" else"
<<
endl
;
mOutputFile
<<
" eval('mex -O LDFLAGS=''-Wl,-twolevel_namespace -undefined error -arch
\\
$ARCHS -Wl,-syslibroot,
\\
$MW_SDKROOT -mmacosx-version-min=
\\
$MACOSX_DEPLOYMENT_TARGET -bundle'' "
<<
basename
<<
"_dynamic.c "
<<
basename
<<
"_dynamic_mex.c')"
<<
endl
<<
" eval('mex -O LDFLAGS=''-Wl,-twolevel_namespace -undefined error -arch
\\
$ARCHS -Wl,-syslibroot,
\\
$MW_SDKROOT -mmacosx-version-min=
\\
$MACOSX_DEPLOYMENT_TARGET -bundle'' "
<<
basename
<<
"_static.c "
<<
basename
<<
"_static_mex.c')"
<<
endl
;
mOutputFile
<<
" end"
<<
endl
;
# endif
#endif
mOutputFile
<<
"else"
<<
endl
// Octave
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment