From 514f0bf5c546d666f32c02ea652658dcf3b85c8c Mon Sep 17 00:00:00 2001 From: Geoffrey Oxberry Date: Wed, 31 Jan 2018 16:12:44 -0800 Subject: [PATCH] lz4 platform=darwin: fix dylib name (#7112) --- var/spack/repos/builtin/packages/lz4/package.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/var/spack/repos/builtin/packages/lz4/package.py b/var/spack/repos/builtin/packages/lz4/package.py index 977167dd28..a71b9699ce 100644 --- a/var/spack/repos/builtin/packages/lz4/package.py +++ b/var/spack/repos/builtin/packages/lz4/package.py @@ -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)