diff options
-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) |