blis: fix darwin install name (#12869)

This commit is contained in:
Adam J. Stewart 2019-09-18 22:46:34 -05:00 committed by GitHub
parent a4e585bad5
commit cbbd384628
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,7 +50,7 @@ class Blis(Package):
)
variant(
'cblas', default=False,
'cblas', default=True,
description='CBLAS compatibility',
)
@ -117,3 +117,9 @@ def check(self):
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)