json-c: fix install on macOS (#23912)

This commit is contained in:
Adam J. Stewart 2021-05-25 19:05:09 -05:00 committed by GitHub
parent 3c587b14ad
commit dbde984de1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,3 +47,9 @@ def patch(self):
filter_file('-Werror',
'',
'CMakeLists.txt')
@run_after('install')
def darwin_fix(self):
# The shared library is not installed correctly on Darwin; fix this
if 'platform=darwin' in self.spec:
fix_darwin_install_name(self.prefix.lib)