summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorDom Heinzeller <dom.heinzeller@icloud.com>2023-09-12 11:49:30 -0600
committerGitHub <noreply@github.com>2023-09-12 10:49:30 -0700
commit513232cdb30e8caa35fa546d6339d2ecf0b5acb9 (patch)
tree902082adece5b0c6d6582bd078a97e300b5e0d03 /var
parent30893dd99ae7a2b7a1c76ac7091d413a7ee5a05e (diff)
downloadspack-513232cdb30e8caa35fa546d6339d2ecf0b5acb9.tar.gz
spack-513232cdb30e8caa35fa546d6339d2ecf0b5acb9.tar.bz2
spack-513232cdb30e8caa35fa546d6339d2ecf0b5acb9.tar.xz
spack-513232cdb30e8caa35fa546d6339d2ecf0b5acb9.zip
libjpeg-turbo: Fix Darwin lib install name (#39834)
* Fix Darwin lib install name in var/spack/repos/builtin/packages/libjpeg-turbo/package.py * Update var/spack/repos/builtin/packages/libjpeg-turbo/package.py Co-authored-by: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com> --------- Co-authored-by: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/libjpeg-turbo/package.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/libjpeg-turbo/package.py b/var/spack/repos/builtin/packages/libjpeg-turbo/package.py
index fdeb35914e..a30e29b138 100644
--- a/var/spack/repos/builtin/packages/libjpeg-turbo/package.py
+++ b/var/spack/repos/builtin/packages/libjpeg-turbo/package.py
@@ -88,3 +88,9 @@ class CMakeBuilder(spack.build_systems.cmake.CMakeBuilder):
]
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") and ("+shared" in self.spec):
+ fix_darwin_install_name(self.prefix.lib)