Skip to content

Commit 1d5aec0

Browse files
committed
c17 instead
1 parent 6b5f702 commit 1d5aec0

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

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+
protected function getExtraEnv(): array
29+
{
30+
return ['CFLAGS' => '-std=c17'];
31+
}
2732
}

src/SPC/builder/unix/library/gmp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ protected function build(): void
1212
{
1313
UnixAutoconfExecutor::create($this)
1414
->appendEnv([
15-
'CFLAGS' => '-std=gnu99',
15+
'CFLAGS' => '-std=c17',
1616
])
1717
->configure()
1818
->make();

src/SPC/builder/unix/library/ncurses.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ protected function build(): void
1616

1717
UnixAutoconfExecutor::create($this)
1818
->appendEnv([
19-
'CFLAGS' => '-std=gnu99',
19+
'CFLAGS' => '-std=c17',
2020
'LDFLAGS' => SPCTarget::isStatic() ? '-static' : '',
2121
])
2222
->configure(

0 commit comments

Comments
 (0)