gmp: Fix build with gcc-15

This commit is contained in:
Dmitry Bogatov
2025-07-19 13:13:31 +00:00
parent 2a9a83e489
commit 88686e2fe3
+6
View File
@@ -48,6 +48,12 @@ let
configureFlags =
[
"--with-pic"
# gcc-15 have c23 standard by default, where "void foo()" now means "void foo(void)".
#
# The "configure" script relies on c17 and below semantics for "long long
# reliability test 1" (defined in aclocal.m4)
"CFLAGS=-std=c99"
(lib.enableFeature cxx "cxx")
# Build a "fat binary", with routines for several sub-architectures
# (x86), except on Solaris where some tests crash with "Memory fault".