add macos external extension support

This commit is contained in:
crazywhalecc
2023-05-10 21:59:33 +08:00
parent b7f64e46c2
commit 09f1574264
6 changed files with 26 additions and 19 deletions

View File

@@ -34,11 +34,11 @@ class libffi extends MacOSLibraryBase
'--disable-shared ' .
"--host={$this->builder->arch}-apple-darwin " .
"--target={$this->builder->arch}-apple-darwin " .
'--prefix= ' . // use prefix=/
"--libdir={$lib}"
'--prefix= ' // use prefix=/
)
->exec('make clean')
->exec("make -j{$this->builder->concurrency}")
->exec("make install DESTDIR={$destdir}");
$this->patchPkgconfPrefix(['libffi.pc']);
}
}