Qhull: fix RPATH on macOS (#31586)

This commit is contained in:
Adam J. Stewart 2022-07-15 16:14:19 -07:00 committed by GitHub
parent ac15ebec76
commit caee7341dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,3 +45,9 @@ def libs(self):
else:
return find_libraries('libqhull', self.prefix,
shared=True, recursive=True)
@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)