summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2021-05-25 19:05:09 -0500
committerGitHub <noreply@github.com>2021-05-26 00:05:09 +0000
commitdbde984de1da0a44c02026dedc6bef5eb8192155 (patch)
treea4557571762cd27eccec73b9a3c0fcb9e0288162 /var
parent3c587b14adb6384bfb94b1870f1bbf8593d3ec54 (diff)
downloadspack-dbde984de1da0a44c02026dedc6bef5eb8192155.tar.gz
spack-dbde984de1da0a44c02026dedc6bef5eb8192155.tar.bz2
spack-dbde984de1da0a44c02026dedc6bef5eb8192155.tar.xz
spack-dbde984de1da0a44c02026dedc6bef5eb8192155.zip
json-c: fix install on macOS (#23912)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/json-c/package.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/json-c/package.py b/var/spack/repos/builtin/packages/json-c/package.py
index 1f5c6706a9..476d4627a4 100644
--- a/var/spack/repos/builtin/packages/json-c/package.py
+++ b/var/spack/repos/builtin/packages/json-c/package.py
@@ -47,3 +47,9 @@ class JsonC(CMakePackage):
filter_file('-Werror',
'',
'CMakeLists.txt')
+
+ @run_after('install')
+ def darwin_fix(self):
+ # The shared library is not installed correctly on Darwin; fix this
+ if 'platform=darwin' in self.spec:
+ fix_darwin_install_name(self.prefix.lib)