From 88686e2fe3a9657520a7bed0e0eb53e736345485 Mon Sep 17 00:00:00 2001 From: Dmitry Bogatov Date: Sun, 29 Jun 2025 01:06:06 +0000 Subject: [PATCH] gmp: Fix build with gcc-15 --- pkgs/development/libraries/gmp/6.x.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/libraries/gmp/6.x.nix b/pkgs/development/libraries/gmp/6.x.nix index 2e3fdc532059..25e0a324ec12 100644 --- a/pkgs/development/libraries/gmp/6.x.nix +++ b/pkgs/development/libraries/gmp/6.x.nix @@ -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".