Skip to content

Commit 7bdcda1

Browse files
committed
gmp can't build with std=c23 (default with gcc 15)
1 parent 66840a8 commit 7bdcda1

File tree

1 file changed

+6
-1
lines changed
  • src/SPC/builder/unix/library

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@ trait gmp
1010
{
1111
protected function build(): void
1212
{
13-
UnixAutoconfExecutor::create($this)->configure()->make();
13+
UnixAutoconfExecutor::create($this)
14+
->appendEnv([
15+
'CFLAGS' => '-std=gnu99',
16+
])
17+
->configure()
18+
->make();
1419
$this->patchPkgconfPrefix(['gmp.pc']);
1520
}
1621
}

0 commit comments

Comments
 (0)