summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2022-07-15 16:14:19 -0700
committerGitHub <noreply@github.com>2022-07-15 16:14:19 -0700
commitcaee7341dd4fe906ad2254bd5d74f0c9f6520846 (patch)
treea1e1467abf62f4d35f4345a775629a5d93c6ca89 /var
parentac15ebec76f5f96ad42ef6bd8f276ce72b3e628a (diff)
downloadspack-caee7341dd4fe906ad2254bd5d74f0c9f6520846.tar.gz
spack-caee7341dd4fe906ad2254bd5d74f0c9f6520846.tar.bz2
spack-caee7341dd4fe906ad2254bd5d74f0c9f6520846.tar.xz
spack-caee7341dd4fe906ad2254bd5d74f0c9f6520846.zip
Qhull: fix RPATH on macOS (#31586)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/qhull/package.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/qhull/package.py b/var/spack/repos/builtin/packages/qhull/package.py
index fc1a9192ab..526c48f012 100644
--- a/var/spack/repos/builtin/packages/qhull/package.py
+++ b/var/spack/repos/builtin/packages/qhull/package.py
@@ -45,3 +45,9 @@ class Qhull(CMakePackage):
else:
return find_libraries('libqhull', self.prefix,
shared=True, recursive=True)
+
+ @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)