mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 21:04:52 +08:00
mongodb 添加参数
This commit is contained in:
parent
a714482cfb
commit
2767ac524f
@ -157,7 +157,11 @@
|
|||||||
"mongodb": {
|
"mongodb": {
|
||||||
"type": "external",
|
"type": "external",
|
||||||
"source": "mongodb",
|
"source": "mongodb",
|
||||||
"arg-type": "custom"
|
"arg-type": "custom",
|
||||||
|
"lib-suggests": [
|
||||||
|
"icu",
|
||||||
|
"openssl"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"mysqli": {
|
"mysqli": {
|
||||||
"type": "builtin",
|
"type": "builtin",
|
||||||
|
|||||||
@ -12,6 +12,19 @@ class mongodb extends Extension
|
|||||||
{
|
{
|
||||||
public function getUnixConfigureArg(): string
|
public function getUnixConfigureArg(): string
|
||||||
{
|
{
|
||||||
return '--enable-mongodb --without-mongodb-sasl';
|
$arg = '--enable-mongodb --without-mongodb-sasl';
|
||||||
|
if ($this->builder->getLib('openssl')) {
|
||||||
|
$arg .= '--with-mongodb-system-libs=no --with-mongodb-ssl=openssl';
|
||||||
|
} else {
|
||||||
|
// 禁用,否则链接的是系统库
|
||||||
|
$arg .= '';
|
||||||
|
}
|
||||||
|
if ($this->builder->getLib('icu')) {
|
||||||
|
$arg .= '--with-mongodb-system-libs=no --with-mongodb-ssl=openssl';
|
||||||
|
} else {
|
||||||
|
// 禁用,否则链接的是系统库
|
||||||
|
$arg .= '';
|
||||||
|
}
|
||||||
|
return $arg;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user