summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorJean-Paul Pelteret <jppelteret@gmail.com>2020-10-29 21:29:39 +0100
committerGitHub <noreply@github.com>2020-10-29 15:29:39 -0500
commit52959528a2cb7e7e9b213efd1243a078502ac708 (patch)
treec269b02f476f1a4dd916cc97fafd56494e4e27ae /var
parentaf057e0196967f0ba34410d0e1dbceba7ad01396 (diff)
downloadspack-52959528a2cb7e7e9b213efd1243a078502ac708.tar.gz
spack-52959528a2cb7e7e9b213efd1243a078502ac708.tar.bz2
spack-52959528a2cb7e7e9b213efd1243a078502ac708.tar.xz
spack-52959528a2cb7e7e9b213efd1243a078502ac708.zip
Suite-sparse: Fix Darwin install name (#19507)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/suite-sparse/package.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/suite-sparse/package.py b/var/spack/repos/builtin/packages/suite-sparse/package.py
index 04eae1f717..c52fa86c23 100644
--- a/var/spack/repos/builtin/packages/suite-sparse/package.py
+++ b/var/spack/repos/builtin/packages/suite-sparse/package.py
@@ -148,6 +148,13 @@ class SuiteSparse(Package):
make_args.append('INSTALL=%s' % prefix)
make('install', *make_args)
+ @run_after('install')
+ def fix_darwin_install(self):
+ # The shared libraries are not installed correctly on Darwin:
+ # See https://github.com/DrTimothyAldenDavis/SuiteSparse/issues/42
+ if '+pic platform=darwin' in self.spec:
+ fix_darwin_install_name(self.spec.prefix.lib)
+
@property
def libs(self):
"""Export the libraries of SuiteSparse.