mbedtls, xz: add missing install_name fixes on macOS (#31919)
This commit is contained in:
parent
bb9744213f
commit
a80c0e0217
2 changed files with 10 additions and 0 deletions
|
@ -137,3 +137,8 @@ def build(self, spec, prefix):
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
def install(self, spec, prefix):
|
||||||
make("install", "DESTDIR={0}".format(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)
|
||||||
|
|
|
@ -53,3 +53,8 @@ def determine_version(cls, exe):
|
||||||
output = Executable(exe)("--version", output=str, error=str)
|
output = Executable(exe)("--version", output=str, error=str)
|
||||||
match = re.search(r"xz \(XZ Utils\) (\S+)", output)
|
match = re.search(r"xz \(XZ Utils\) (\S+)", output)
|
||||||
return match.group(1) if match else None
|
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)
|
||||||
|
|
Loading…
Reference in a new issue