This commit is contained in:
crazywhalecc
2025-07-10 12:59:27 +08:00
parent a5d26d6517
commit dd72b32559
6 changed files with 50 additions and 5 deletions

View File

@@ -294,6 +294,11 @@ abstract class UnixBuilderBase extends BuilderBase
$php_config_str = preg_replace('/(libs=")(.*?)\s*(-lstdc\+\+)\s*(.*?)"/', '$1$2 $4 $3"', $php_config_str);
FileSystem::writeFile(BUILD_BIN_PATH . '/php-config', $php_config_str);
}
foreach ($this->getLibs() as $lib) {
if ($lib->patchPhpConfig()) {
logger()->debug("Library {$lib->getName()} patched php-config");
}
}
}
/**