diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2019-09-18 22:46:34 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-18 22:46:34 -0500 |
commit | cbbd3846288fde979b628058900897de54944aa0 (patch) | |
tree | 02f8c325f2218321e3d5093c9ad05cd55ed9684e | |
parent | a4e585bad5da8ea9cce239bede5efd1e6138f7d9 (diff) | |
download | spack-cbbd3846288fde979b628058900897de54944aa0.tar.gz spack-cbbd3846288fde979b628058900897de54944aa0.tar.bz2 spack-cbbd3846288fde979b628058900897de54944aa0.tar.xz spack-cbbd3846288fde979b628058900897de54944aa0.zip |
blis: fix darwin install name (#12869)
-rw-r--r-- | var/spack/repos/builtin/packages/blis/package.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/blis/package.py b/var/spack/repos/builtin/packages/blis/package.py index bf96ee7919..9bc167b2f7 100644 --- a/var/spack/repos/builtin/packages/blis/package.py +++ b/var/spack/repos/builtin/packages/blis/package.py @@ -50,7 +50,7 @@ class Blis(Package): ) variant( - 'cblas', default=False, + 'cblas', default=True, description='CBLAS compatibility', ) @@ -117,3 +117,9 @@ class Blis(Package): def install(self, spec, prefix): make('install') + + @run_after('install') + def darwin_fix(self): + # The shared library is not installed correctly on Darwin; fix this + if self.spec.satisfies('platform=darwin'): + fix_darwin_install_name(self.prefix.lib) |