diff options
author | Jason Sarich <sarich@mcs.anl.gov> | 2017-01-23 12:24:21 -0600 |
---|---|---|
committer | becker33 <becker33@llnl.gov> | 2017-01-23 10:24:21 -0800 |
commit | 3686d0ceb324be8f830b561a085981bc6e2f7914 (patch) | |
tree | ee5b049fc5ebaa43b35ec5e854745dfc808db2a3 | |
parent | 162be154d29a19407722611519524a7384affe8e (diff) | |
download | spack-3686d0ceb324be8f830b561a085981bc6e2f7914.tar.gz spack-3686d0ceb324be8f830b561a085981bc6e2f7914.tar.bz2 spack-3686d0ceb324be8f830b561a085981bc6e2f7914.tar.xz spack-3686d0ceb324be8f830b561a085981bc6e2f7914.zip |
have trilinos search for static libraries first when not using shared variant (#2896)
-rw-r--r-- | var/spack/repos/builtin/packages/trilinos/package.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/trilinos/package.py b/var/spack/repos/builtin/packages/trilinos/package.py index 4b3412ce7a..aed722814b 100644 --- a/var/spack/repos/builtin/packages/trilinos/package.py +++ b/var/spack/repos/builtin/packages/trilinos/package.py @@ -157,6 +157,10 @@ class Trilinos(CMakePackage): 'DEBUG' if '+debug' in spec else 'RELEASE'), '-DBUILD_SHARED_LIBS:BOOL=%s' % ( 'ON' if '+shared' in spec else 'OFF'), + '-DTPL_FIND_SHARED_LIBS:BOOL=%s' % ( + 'ON' if '+shared' in spec else 'OFF'), + '-DTrilinos_LINK_SEARCH_START_STATIC:BOOL=%s' % ( + 'OFF' if '+shared' in spec else 'ON'), '-DTPL_ENABLE_MPI:BOOL=ON', '-DMPI_BASE_DIR:PATH=%s' % spec['mpi'].prefix, '-DTPL_ENABLE_BLAS=ON', |