mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-17 20:34:51 +08:00
change swoole-pgsql as alternative
This commit is contained in:
parent
21a4ba7478
commit
4766ae146f
@ -370,14 +370,14 @@
|
||||
"arg-type": "custom",
|
||||
"cpp-extension": true,
|
||||
"lib-depends": [
|
||||
"openssl",
|
||||
"pqsql"
|
||||
"openssl"
|
||||
],
|
||||
"ext-depends": [
|
||||
"openssl"
|
||||
],
|
||||
"ext-suggests": [
|
||||
"curl"
|
||||
"curl",
|
||||
"pgsql"
|
||||
],
|
||||
"unix-only": true
|
||||
},
|
||||
|
||||
@ -12,7 +12,8 @@ class swoole extends Extension
|
||||
{
|
||||
public function getUnixConfigureArg(): string
|
||||
{
|
||||
$arg = '--enable-swoole --enable-swoole-pgsql';
|
||||
$arg = '--enable-swoole';
|
||||
$arg .= $this->builder->getExt('pgsql') ? ' --enable-swoole-pgsql' : ' --disable-swoole-pgsql';
|
||||
$arg .= $this->builder->getLib('openssl') ? ' --enable-openssl' : ' --disable-openssl --without-openssl';
|
||||
$arg .= $this->builder->getLib('brotli') ? (' --enable-brotli --with-brotli-dir=' . BUILD_ROOT_PATH) : '';
|
||||
// curl hook is buggy for static php
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user