diff --git a/config/ext.json b/config/ext.json index c3e53780..e160d93a 100644 --- a/config/ext.json +++ b/config/ext.json @@ -166,12 +166,11 @@ "type": "external", "source": "mongodb", "arg-type": "custom", - "lib-depends": [ - "zstd" - ], "lib-suggests": [ "icu", - "openssl" + "openssl", + "zstd", + "zlib" ] }, "mysqli": { diff --git a/src/SPC/builder/extension/mongodb.php b/src/SPC/builder/extension/mongodb.php index a33b1b9e..2096de05 100644 --- a/src/SPC/builder/extension/mongodb.php +++ b/src/SPC/builder/extension/mongodb.php @@ -13,16 +13,15 @@ class mongodb extends Extension public function getUnixConfigureArg(): string { $arg = ' --enable-mongodb '; - $arg .= ' --with-mongodb-system-libs=no '; + $arg .= ' --with-mongodb-system-libs=no --with-mongodb-client-side-encryption=no '; $arg .= ' --with-mongodb-sasl=no '; if ($this->builder->getLib('openssl')) { $arg .= '--with-mongodb-ssl=openssl'; } - if ($this->builder->getLib('icu')) { - $arg .= ' --with-mongodb-icu=yes '; - } else { - $arg .= ' --with-mongodb-icu=no '; - } + $arg .= $this->builder->getLib('icu') ? ' --with-mongodb-icu=yes ' : ' --with-mongodb-icu=no '; + $arg .= $this->builder->getLib('zstd') ? ' --with-mongodb-zstd=yes ' : ' --with-mongodb-zstd=no '; + // $arg .= $this->builder->getLib('snappy') ? ' --with-mongodb-snappy=yes ' : ' --with-mongodb-snappy=no '; + $arg .= $this->builder->getLib('zlib') ? ' --with-mongodb-zlib=yes ' : ' --with-mongodb-zlib=bundled '; return $arg; } }