gmp can't build with std=c23 (default with gcc 15)

This commit is contained in:
henderkes 2025-12-05 11:37:35 +01:00
parent 66840a8eed
commit 7bdcda1d62

View File

@ -10,7 +10,12 @@ trait gmp
{
protected function build(): void
{
UnixAutoconfExecutor::create($this)->configure()->make();
UnixAutoconfExecutor::create($this)
->appendEnv([
'CFLAGS' => '-std=gnu99',
])
->configure()
->make();
$this->patchPkgconfPrefix(['gmp.pc']);
}
}