diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2019-09-18 22:44:57 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-18 22:44:57 -0500 |
commit | 964500399b177bc45dc00b9789f9ae8fc7c7d834 (patch) | |
tree | 8207e1b5dfc05d104529ae649163d13ae0e0bf47 /var | |
parent | b33d0052679ea3bf9b3c02a31709b8a5864b736f (diff) | |
download | spack-964500399b177bc45dc00b9789f9ae8fc7c7d834.tar.gz spack-964500399b177bc45dc00b9789f9ae8fc7c7d834.tar.bz2 spack-964500399b177bc45dc00b9789f9ae8fc7c7d834.tar.xz spack-964500399b177bc45dc00b9789f9ae8fc7c7d834.zip |
libkml: fix darwin install name (#12872)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/libkml/package.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/libkml/package.py b/var/spack/repos/builtin/packages/libkml/package.py index c56f2e5ec5..acf3174728 100644 --- a/var/spack/repos/builtin/packages/libkml/package.py +++ b/var/spack/repos/builtin/packages/libkml/package.py @@ -57,3 +57,9 @@ class Libkml(CMakePackage): args.append('-DBUILD_TESTING:BOOL=OFF') 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'): + fix_darwin_install_name(self.prefix.lib) |