We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4eaeeb8 commit 93a227bCopy full SHA for 93a227b
1 file changed
src/SPC/builder/extension/mongodb.php
@@ -5,11 +5,22 @@
5
namespace SPC\builder\extension;
6
7
use SPC\builder\Extension;
8
+use SPC\store\FileSystem;
9
use SPC\util\CustomExt;
10
11
#[CustomExt('mongodb')]
12
class mongodb extends Extension
13
{
14
+ public function patchBeforeBuildconf(): bool
15
+ {
16
+ FileSystem::replaceFileRegex(
17
+ SOURCE_PATH . '/php-src/ext/mongodb/config.m4',
18
+ '/^(\s+)(src\/libmongoc\/)/m',
19
+ '$1${ac_config_dir}/$2'
20
+ );
21
+ return true;
22
+ }
23
+
24
public function getUnixConfigureArg(bool $shared = false): string
25
26
$arg = ' --enable-mongodb' . ($shared ? '=shared' : '') . ' ';
0 commit comments