fix macos

This commit is contained in:
henderkes 2025-05-20 08:24:28 +07:00
parent 38dfcdabd0
commit 14a0e1a6cc
2 changed files with 9 additions and 0 deletions

View File

@ -5,6 +5,7 @@ declare(strict_types=1);
namespace SPC\builder\extension;
use SPC\builder\Extension;
use SPC\builder\linux\LinuxBuilder;
use SPC\store\FileSystem;
use SPC\util\CustomExt;
@ -13,6 +14,9 @@ class phar extends Extension
{
public function patchBeforeSharedBuild(): bool
{
if (!$this->builder instanceof LinuxBuilder) {
return false;
}
FileSystem::replaceFileStr(
$this->source_dir . '/config.m4',
['$ext_dir/phar.1', '$ext_dir/phar.phar.1'],

View File

@ -24,4 +24,9 @@ class readline extends Extension
);
return true;
}
public function getUnixConfigureArg(bool $shared = false): string
{
return '--without-libedit --with-readline=' . BUILD_ROOT_PATH;
}
}