mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-12 03:15:35 +08:00
update
This commit is contained in:
@@ -12,18 +12,14 @@ class mongodb extends Extension
|
|||||||
{
|
{
|
||||||
public function getUnixConfigureArg(): string
|
public function getUnixConfigureArg(): string
|
||||||
{
|
{
|
||||||
$arg = '--enable-mongodb --without-mongodb-sasl';
|
$arg = ' --enable-mongodb ';
|
||||||
|
$arg .= ' --with-mongodb-system-libs=no ';
|
||||||
|
$arg .= ' --with-mongodb-sasl=no ';
|
||||||
if ($this->builder->getLib('openssl')) {
|
if ($this->builder->getLib('openssl')) {
|
||||||
$arg .= '--with-mongodb-system-libs=no --with-mongodb-ssl=openssl';
|
$arg .= '--with-mongodb-ssl=openssl';
|
||||||
} else {
|
|
||||||
// 禁用,否则链接的是系统库
|
|
||||||
$arg .= '';
|
|
||||||
}
|
}
|
||||||
if ($this->builder->getLib('icu')) {
|
if ($this->builder->getLib('icu')) {
|
||||||
$arg .= '--with-mongodb-system-libs=no --with-mongodb-ssl=openssl';
|
$arg .= ' --with-mongodb-icu=yes ';
|
||||||
} else {
|
|
||||||
// 禁用,否则链接的是系统库
|
|
||||||
$arg .= '';
|
|
||||||
}
|
}
|
||||||
return $arg;
|
return $arg;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user