Fix patch, use pure socket client directly

This commit is contained in:
crazywhalecc
2025-08-03 01:23:47 +08:00
parent e6cf05ddff
commit e7fe91faef
2 changed files with 18 additions and 6 deletions

View File

@@ -87,10 +87,11 @@ class SourcePatcher
}
// patch configure.ac
$musl = SPCTarget::getLibc() === 'musl';
FileSystem::replaceFileStr(
SOURCE_PATH . '/php-src/configure.ac',
'if command -v ldd >/dev/null && ldd --version 2>&1 | grep ^musl >/dev/null 2>&1',
'if [ "$SPC_LIBC" = "musl" ];'
'if ' . ($musl ? 'true' : 'false')
);
if (getenv('SPC_LIBC') === false && ($libc = SPCTarget::getLibc()) !== null) {
putenv("SPC_LIBC={$libc}");