summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2019-10-19 12:18:06 -0500
committerGitHub <noreply@github.com>2019-10-19 12:18:06 -0500
commit306346356caefcd683b469200527dff7437458b0 (patch)
tree9a3e68a06d8c8704351ef5346fff32401d674393
parent327a7368e91cb1763531e0154ccabf04005a090c (diff)
downloadspack-306346356caefcd683b469200527dff7437458b0.tar.gz
spack-306346356caefcd683b469200527dff7437458b0.tar.bz2
spack-306346356caefcd683b469200527dff7437458b0.tar.xz
spack-306346356caefcd683b469200527dff7437458b0.zip
brotli: fix darwin install name (#13258)
-rw-r--r--var/spack/repos/builtin/packages/brotli/package.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/brotli/package.py b/var/spack/repos/builtin/packages/brotli/package.py
index 81c736e033..e11c681029 100644
--- a/var/spack/repos/builtin/packages/brotli/package.py
+++ b/var/spack/repos/builtin/packages/brotli/package.py
@@ -13,3 +13,9 @@ class Brotli(CMakePackage):
url = "https://github.com/google/brotli/archive/v1.0.7.tar.gz"
version('1.0.7', sha256='4c61bfb0faca87219ea587326c467b95acb25555b53d1a421ffa3c8a9296ee2c')
+
+ @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)