Forward-port #1115

This commit is contained in:
crazywhalecc
2026-04-29 16:52:20 +08:00
parent d745c7d9ec
commit 2c8c7214f0
2 changed files with 95 additions and 0 deletions

View File

@@ -55,6 +55,10 @@ trait unix
foreach (glob("{$package->getSourceDir()}/ext/*/*.m4") as $m4file) {
FileSystem::replaceFileStr($m4file, 'PKG_CHECK_MODULES(', 'PKG_CHECK_MODULES_STATIC(');
}
if (self::getPHPVersionID() >= 80300 && self::getPHPVersionID() < 80400) {
SourcePatcher::patchFile('spc_fix_avx512_cache_before_80400.patch', $this->getSourceDir());
}
}
#[Stage]