File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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 ();
Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments