mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 12:54:52 +08:00
25 lines
529 B
PHP
25 lines
529 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace SPC\builder\macos\library;
|
|
|
|
use SPC\util\executor\UnixAutoconfExecutor;
|
|
|
|
class libffi extends MacOSLibraryBase
|
|
{
|
|
public const NAME = 'libffi';
|
|
|
|
protected function build(): void
|
|
{
|
|
$arch = getenv('SPC_ARCH');
|
|
UnixAutoconfExecutor::create($this)
|
|
->configure(
|
|
"--host={$arch}-apple-darwin",
|
|
"--target={$arch}-apple-darwin",
|
|
)
|
|
->make();
|
|
$this->patchPkgconfPrefix(['libffi.pc']);
|
|
}
|
|
}
|