From cbbd3846288fde979b628058900897de54944aa0 Mon Sep 17 00:00:00 2001
From: "Adam J. Stewart" <ajstewart426@gmail.com>
Date: Wed, 18 Sep 2019 22:46:34 -0500
Subject: blis: fix darwin install name (#12869)

---
 var/spack/repos/builtin/packages/blis/package.py | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

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)
-- 
cgit v1.2.3-70-g09d2