summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2019-09-18 22:44:38 -0500
committerGitHub <noreply@github.com>2019-09-18 22:44:38 -0500
commitb33d0052679ea3bf9b3c02a31709b8a5864b736f (patch)
tree44a78682c4a2ff570061d65208e592bec0f4a12e /var
parent1fe94748d2dfdd8eb122e0ba293d325f0dabfece (diff)
downloadspack-b33d0052679ea3bf9b3c02a31709b8a5864b736f.tar.gz
spack-b33d0052679ea3bf9b3c02a31709b8a5864b736f.tar.bz2
spack-b33d0052679ea3bf9b3c02a31709b8a5864b736f.tar.xz
spack-b33d0052679ea3bf9b3c02a31709b8a5864b736f.zip
wcslib: fix darwin install name (#12868)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/wcslib/package.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/wcslib/package.py b/var/spack/repos/builtin/packages/wcslib/package.py
index 72c69d2282..60fc76672a 100644
--- a/var/spack/repos/builtin/packages/wcslib/package.py
+++ b/var/spack/repos/builtin/packages/wcslib/package.py
@@ -47,3 +47,9 @@ class Wcslib(AutotoolsPackage):
args.append('--without-x')
return args
+
+ @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)