mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-17 20:34:51 +08:00
let bzip2 use correct CC and AR
This commit is contained in:
parent
9b9644fe63
commit
8dcec73929
@ -8,9 +8,14 @@ trait bzip2
|
||||
{
|
||||
protected function build(): void
|
||||
{
|
||||
$cc = getenv('CC');
|
||||
$ar = getenv('AR');
|
||||
if ($ar === false) {
|
||||
$ar = 'ar';
|
||||
}
|
||||
shell()->cd($this->source_dir)
|
||||
->exec("make PREFIX='" . BUILD_ROOT_PATH . "' clean")
|
||||
->exec("make -j{$this->builder->concurrency} PREFIX='" . BUILD_ROOT_PATH . "' libbz2.a")
|
||||
->exec("make -j{$this->builder->concurrency} PREFIX='" . BUILD_ROOT_PATH . "' CC={$cc} AR={$ar} libbz2.a")
|
||||
->exec('cp libbz2.a ' . BUILD_LIB_PATH)
|
||||
->exec('cp bzlib.h ' . BUILD_INCLUDE_PATH);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user