summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2019-09-18 22:46:16 -0500
committerGitHub <noreply@github.com>2019-09-18 22:46:16 -0500
commita4e585bad5da8ea9cce239bede5efd1e6138f7d9 (patch)
treecae91ced9f9e8b610d6112c0b5135e940541debb
parent964500399b177bc45dc00b9789f9ae8fc7c7d834 (diff)
downloadspack-a4e585bad5da8ea9cce239bede5efd1e6138f7d9.tar.gz
spack-a4e585bad5da8ea9cce239bede5efd1e6138f7d9.tar.bz2
spack-a4e585bad5da8ea9cce239bede5efd1e6138f7d9.tar.xz
spack-a4e585bad5da8ea9cce239bede5efd1e6138f7d9.zip
googletest: fix darwin install name (#12871)
-rw-r--r--var/spack/repos/builtin/packages/googletest/package.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/googletest/package.py b/var/spack/repos/builtin/packages/googletest/package.py
index 806ecf01ff..06e8969159 100644
--- a/var/spack/repos/builtin/packages/googletest/package.py
+++ b/var/spack/repos/builtin/packages/googletest/package.py
@@ -59,3 +59,9 @@ class Googletest(CMakePackage):
else:
install('libgtest.a', prefix.lib)
install('libgtest_main.a', prefix.lib)
+
+ @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)