[SCons] Always link cantera_shared to its dependencies

This is not strictly required on Linux, but it doesn't hurt.

See #318.
This commit is contained in:
Ray Speth 2016-07-04 18:16:49 -04:00
parent 9a309ee410
commit 9b318f3c90

View file

@ -41,16 +41,14 @@ localenv.Depends(lib, localenv['config_h_target'])
install('$inst_libdir', lib)
env['cantera_staticlib'] = lib
# Windows and OS X require shared libraries at link time
if localenv['OS'] in ('Darwin', 'Windows', 'Cygwin'):
if (localenv['system_sundials'] == 'y'):
localenv.Append(LIBS=localenv['sundials_libs'],
LIBPATH=localenv['sundials_libdir'])
if localenv['blas_lapack_libs']:
localenv.Append(LIBS=localenv['blas_lapack_libs'],
LIBPATH=localenv['blas_lapack_dir'])
if localenv['system_fmt']:
localenv.Append(LIBS='fmt')
if (localenv['system_sundials'] == 'y'):
localenv.Append(LIBS=localenv['sundials_libs'],
LIBPATH=localenv['sundials_libdir'])
if localenv['blas_lapack_libs']:
localenv.Append(LIBS=localenv['blas_lapack_libs'],
LIBPATH=localenv['blas_lapack_dir'])
if localenv['system_fmt']:
localenv.Append(LIBS='fmt')
# Build the Cantera shared library
if localenv['layout'] != 'debian':