[SCons/Matlab] Link statically to libstdc++ on Linux
Matlab 2016a now uses some C++11 features, and symbols included in some of the Matlab libraries conflict with the versions from system libraries that Cantera is compiled with and expects to find, resulting in difficult-to-diagnose memory errors.
This commit is contained in:
parent
69f25b41dc
commit
e2d7e178b3
1 changed files with 2 additions and 1 deletions
|
|
@ -50,7 +50,8 @@ elif os.name == 'posix':
|
|||
mexSuffix = '.mexglx'
|
||||
|
||||
linkflags.extend(['-Wl,--no-undefined',
|
||||
'-Wl,--version-script,src/matlab/mexFunction.map'])
|
||||
'-Wl,--version-script,src/matlab/mexFunction.map',
|
||||
'-static-libstdc++'])
|
||||
|
||||
localenv.Prepend(CPPPATH=['#include', '#src', matlab_include])
|
||||
localenv.Append(CPPDEFINES=['MATLAB_MEX_FILE'],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue