Skip to content

Commit dce63d3

Browse files
committed
we need extensions to explicitly tell which c std they need
1 parent 47ab5d7 commit dce63d3

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/SPC/builder/Extension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ protected function addExtensionDependency(string $name, bool $optional = false):
576576

577577
protected function getExtraEnv(): array
578578
{
579-
return ['CFLAGS' => '-std=c17'];
579+
return ['CFLAGS' => ''];
580580
}
581581

582582
/**

src/SPC/builder/extension/mongodb.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,9 @@ public function getUnixConfigureArg(bool $shared = false): string
2424
$arg .= $this->builder->getLib('zlib') ? ' --with-mongodb-zlib=yes ' : ' --with-mongodb-zlib=bundled ';
2525
return clean_spaces($arg);
2626
}
27+
28+
public function getExtraEnv(): array
29+
{
30+
return ['CFLAGS' => '-std=c17'];
31+
}
2732
}

0 commit comments

Comments
 (0)