mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-08 17:35:36 +08:00
always install musl libc (to be able to compile dynamic with zig)
This commit is contained in:
@@ -31,7 +31,7 @@ class LinuxToolCheckList
|
|||||||
'tar', 'unzip', 'gzip',
|
'tar', 'unzip', 'gzip',
|
||||||
'bzip2', 'cmake', 'patch',
|
'bzip2', 'cmake', 'patch',
|
||||||
'xz', 'libtoolize', 'which',
|
'xz', 'libtoolize', 'which',
|
||||||
'patchelf',
|
'patchelf', 'musl'
|
||||||
];
|
];
|
||||||
|
|
||||||
public const TOOLS_RHEL = [
|
public const TOOLS_RHEL = [
|
||||||
@@ -40,7 +40,7 @@ class LinuxToolCheckList
|
|||||||
'tar', 'unzip', 'gzip', 'gcc',
|
'tar', 'unzip', 'gzip', 'gcc',
|
||||||
'bzip2', 'cmake', 'patch', 'which',
|
'bzip2', 'cmake', 'patch', 'which',
|
||||||
'xz', 'libtool', 'gettext-devel',
|
'xz', 'libtool', 'gettext-devel',
|
||||||
'perl', 'patchelf',
|
'perl', 'patchelf', 'musl-libc'
|
||||||
];
|
];
|
||||||
|
|
||||||
public const TOOLS_ARCH = [
|
public const TOOLS_ARCH = [
|
||||||
@@ -69,7 +69,7 @@ class LinuxToolCheckList
|
|||||||
};
|
};
|
||||||
$missing = [];
|
$missing = [];
|
||||||
foreach ($required as $package) {
|
foreach ($required as $package) {
|
||||||
if ($this->findCommand(self::PROVIDED_COMMAND[$package] ?? $package) === null) {
|
if (self::findCommand(self::PROVIDED_COMMAND[$package] ?? $package) === null) {
|
||||||
$missing[] = $package;
|
$missing[] = $package;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -156,16 +156,6 @@ if ($shared_extensions) {
|
|||||||
case 'ubuntu-22.04-arm':
|
case 'ubuntu-22.04-arm':
|
||||||
$shared_cmd = ' --build-shared=' . quote2($shared_extensions) . ' ';
|
$shared_cmd = ' --build-shared=' . quote2($shared_extensions) . ' ';
|
||||||
break;
|
break;
|
||||||
case 'ubuntu-24.04':
|
|
||||||
case 'ubuntu-24.04-arm':
|
|
||||||
putenv('SPC_TARGET=native-native-musl -dynamic');
|
|
||||||
if (getenv('SPC_TARGET') && str_contains(getenv('SPC_TARGET'), '-musl')) {
|
|
||||||
exec('sudo apt install musl -y');
|
|
||||||
}
|
|
||||||
if (getenv('SPC_TARGET')) {
|
|
||||||
$shared_cmd = ' --build-shared=' . quote2($shared_extensions) . ' ';
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 'macos-13':
|
case 'macos-13':
|
||||||
case 'macos-14':
|
case 'macos-14':
|
||||||
case 'macos-15':
|
case 'macos-15':
|
||||||
|
|||||||
Reference in New Issue
Block a user