Changed visibility of symbols in ctmethods.mex on Linux
This allows Cantera to use BLAS/LAPACK functions included in the mex file instead of the incompatible ones that are part of Matlab.
This commit is contained in:
parent
a1641019dd
commit
abf2e04084
2 changed files with 9 additions and 0 deletions
|
|
@ -46,6 +46,9 @@ elif os.name == 'posix':
|
|||
else:
|
||||
matlab_libs = pjoin(localenv['matlab_path'], 'bin', 'glnx86')
|
||||
|
||||
linkflags.extend(['-Wl,--no-undefined',
|
||||
'-Wl,--version-script,src/matlab/mexFunction.map'])
|
||||
|
||||
mexSuffix = '.mex%s%i' % (mexPlatform, localenv['OS_BITS'])
|
||||
|
||||
localenv.Append(CPPPATH=['#include', '#src', matlab_include],
|
||||
|
|
|
|||
6
src/matlab/mexFunction.map
Normal file
6
src/matlab/mexFunction.map
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
MEX {
|
||||
global:
|
||||
mexFunction;
|
||||
local:
|
||||
*;
|
||||
};
|
||||
Loading…
Add table
Reference in a new issue