diff options
author | Denis Davydov <davydden@gmail.com> | 2016-07-16 07:38:42 +0200 |
---|---|---|
committer | Denis Davydov <davydden@gmail.com> | 2016-07-16 07:38:42 +0200 |
commit | 0752eccfa5f865419f0ab4f3de06f5feea1aa422 (patch) | |
tree | f472ab84af21fd3ace39cbb44a8b916e259a2000 /var/spack/repos/builtin/packages/mumps | |
parent | 6175ce75596bf1abdedda3aaccb7bbed86453f0a (diff) | |
download | spack-0752eccfa5f865419f0ab4f3de06f5feea1aa422.tar.gz spack-0752eccfa5f865419f0ab4f3de06f5feea1aa422.tar.bz2 spack-0752eccfa5f865419f0ab4f3de06f5feea1aa422.tar.xz spack-0752eccfa5f865419f0ab4f3de06f5feea1aa422.zip |
mumps: don't hardcode blas name; remove unused depends_on(lapack)
Diffstat (limited to 'var/spack/repos/builtin/packages/mumps')
-rw-r--r-- | var/spack/repos/builtin/packages/mumps/package.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/mumps/package.py b/var/spack/repos/builtin/packages/mumps/package.py index 92c45c9b95..630c33562b 100644 --- a/var/spack/repos/builtin/packages/mumps/package.py +++ b/var/spack/repos/builtin/packages/mumps/package.py @@ -50,7 +50,6 @@ class Mumps(Package): depends_on('metis@5:', when='+metis') depends_on('parmetis', when="+parmetis") depends_on('blas') - depends_on('lapack') depends_on('scalapack', when='+mpi') depends_on('mpi', when='+mpi') @@ -63,7 +62,9 @@ class Mumps(Package): if ('+parmetis' in self.spec or '+ptscotch' in self.spec) and '+mpi' not in self.spec: raise RuntimeError('You cannot use the variants parmetis or ptscotch without mpi') - makefile_conf = ["LIBBLAS = -L%s -lblas" % self.spec['blas'].prefix.lib] + makefile_conf = ["LIBBLAS = %s" % to_link_flags( + self.spec['blas'].blas_shared_lib) + ] orderings = ['-Dpord'] @@ -189,7 +190,7 @@ class Mumps(Package): install_tree('lib', prefix.lib) install_tree('include', prefix.include) - if '~mpi' in spec: + if '~mpi' in spec: lib_dsuffix = '.dylib' if sys.platform == 'darwin' else '.so' lib_suffix = lib_dsuffix if '+shared' in spec else '.a' install('libseq/libmpiseq%s' % lib_suffix, prefix.lib) |