lz4 platform=darwin: fix dylib name (#7112)

This commit is contained in:
Geoffrey Oxberry 2018-01-31 16:12:44 -08:00 committed by Todd Gamblin
parent 7959c5ffd2
commit 514f0bf5c5

View file

@ -23,6 +23,7 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
##############################################################################
from spack import *
import sys
class Lz4(Package):
@ -53,3 +54,8 @@ def install(self, spec, prefix):
if self.run_tests:
make('test') # requires valgrind to be installed
make('install', 'PREFIX={0}'.format(prefix))
@run_after('install')
def darwin_fix(self):
if sys.platform == 'darwin':
fix_darwin_install_name(self.prefix.lib)