mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
Fix pgsql embed builds
This commit is contained in:
parent
a613e9a84f
commit
955c367a47
@ -21,14 +21,6 @@ class pgsql extends Extension
|
|||||||
*/
|
*/
|
||||||
public function patchBeforeConfigure(): bool
|
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(
|
FileSystem::replaceFileRegex(
|
||||||
SOURCE_PATH . '/php-src/configure',
|
SOURCE_PATH . '/php-src/configure',
|
||||||
'/-lpq/',
|
'/-lpq/',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user