mbedtls, xz: add missing install_name fixes on macOS (#31919)

This commit is contained in:
Harmen Stoppels 2022-08-05 08:10:42 +02:00 committed by GitHub
parent bb9744213f
commit a80c0e0217
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View file

@ -137,3 +137,8 @@ def build(self, spec, prefix):
def install(self, spec, prefix):
make("install", "DESTDIR={0}".format(prefix))
@run_after("install")
def darwin_fix(self):
if self.spec.satisfies("platform=darwin"):
fix_darwin_install_name(self.prefix.lib)

View file

@ -53,3 +53,8 @@ def determine_version(cls, exe):
output = Executable(exe)("--version", output=str, error=str)
match = re.search(r"xz \(XZ Utils\) (\S+)", output)
return match.group(1) if match else None
@run_after("install")
def darwin_fix(self):
if self.spec.satisfies("platform=darwin"):
fix_darwin_install_name(self.prefix.lib)