Fix pgsql embed builds

This commit is contained in:
crazywhalecc 2024-12-10 23:08:23 +08:00 committed by Jerry Ma
parent a613e9a84f
commit 955c367a47

View File

@ -21,14 +21,6 @@ class pgsql extends Extension
*/
public function patchBeforeConfigure(): bool
{
if ($this->builder->getPHPVersionID() >= 80400) {
FileSystem::replaceFileStr(
SOURCE_PATH . '/php-src/configure',
'LIBS="-lpq',
'LIBS="-lpq -lpgport -lpgcommon -lssl -lcrypto -lz -lm'
);
return true;
}
FileSystem::replaceFileRegex(
SOURCE_PATH . '/php-src/configure',
'/-lpq/',