From baade7fbadfa43ebec0b631370c7cd9c024267e6 Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Mon, 5 Mar 2012 20:47:08 +0000 Subject: [PATCH] Link Python and Matlab modules against shared BLAS/LAPACK when necessary --- src/matlab/SConscript | 3 ++- src/python/SConscript | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/matlab/SConscript b/src/matlab/SConscript index 74456c7d7..96c99480e 100644 --- a/src/matlab/SConscript +++ b/src/matlab/SConscript @@ -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'), diff --git a/src/python/SConscript b/src/python/SConscript index 5dd04e19d..1d802bd93 100644 --- a/src/python/SConscript +++ b/src/python/SConscript @@ -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'],