mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
fix macos
This commit is contained in:
parent
38dfcdabd0
commit
14a0e1a6cc
@ -5,6 +5,7 @@ declare(strict_types=1);
|
|||||||
namespace SPC\builder\extension;
|
namespace SPC\builder\extension;
|
||||||
|
|
||||||
use SPC\builder\Extension;
|
use SPC\builder\Extension;
|
||||||
|
use SPC\builder\linux\LinuxBuilder;
|
||||||
use SPC\store\FileSystem;
|
use SPC\store\FileSystem;
|
||||||
use SPC\util\CustomExt;
|
use SPC\util\CustomExt;
|
||||||
|
|
||||||
@ -13,6 +14,9 @@ class phar extends Extension
|
|||||||
{
|
{
|
||||||
public function patchBeforeSharedBuild(): bool
|
public function patchBeforeSharedBuild(): bool
|
||||||
{
|
{
|
||||||
|
if (!$this->builder instanceof LinuxBuilder) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
FileSystem::replaceFileStr(
|
FileSystem::replaceFileStr(
|
||||||
$this->source_dir . '/config.m4',
|
$this->source_dir . '/config.m4',
|
||||||
['$ext_dir/phar.1', '$ext_dir/phar.phar.1'],
|
['$ext_dir/phar.1', '$ext_dir/phar.phar.1'],
|
||||||
|
|||||||
@ -24,4 +24,9 @@ class readline extends Extension
|
|||||||
);
|
);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getUnixConfigureArg(bool $shared = false): string
|
||||||
|
{
|
||||||
|
return '--without-libedit --with-readline=' . BUILD_ROOT_PATH;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user