Link Python and Matlab modules against shared BLAS/LAPACK when necessary

This commit is contained in:
Ray Speth 2012-03-05 20:47:08 +00:00
parent 1ca9e3fac5
commit baade7fbad
2 changed files with 3 additions and 1 deletions

View file

@ -50,7 +50,8 @@ localenv.Append(CPPPATH=['#include', '#src', matlab_include],
CPPDEFINES=['MATLAB_MEX_FILE'],
LIBPATH=[matlab_libs])
linklibs += env['sundials_libs']
linklibs += localenv['sundials_libs']
linklibs += localenv['blas_lapack_libs']
ctmethods = build(localenv.SharedLibrary('#interfaces/matlab/toolbox/ctmethods',
mglob(localenv, '.', 'cpp'),

View file

@ -44,6 +44,7 @@ if localenv['python_package'] == 'full':
pylinklibs.append('python%s' % gcv('VERSION'))
pylinklibs.extend(localenv['sundials_libs'])
pylinklibs.extend(localenv['blas_lapack_libs'])
pymodule = localenv.SharedLibrary('#interfaces/python/Cantera/_cantera',
['pycantera.cpp'],