alpine: set std=gnu17 to fix build with gcc15

This commit is contained in:
7c6f434c
2026-01-04 03:10:48 +01:00
parent fae1961a71
commit 490f53a87f
+7 -3
View File
@@ -43,9 +43,13 @@ stdenv.mkDerivation rec {
"--with-c-client-target=slx"
];
# Fixes https://github.com/NixOS/nixpkgs/issues/372699
# See also https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1074804
env.NIX_CFLAGS_COMPILE = toString [ "-Wno-incompatible-pointer-types" ];
env.NIX_CFLAGS_COMPILE = toString [
# Fixes https://github.com/NixOS/nixpkgs/issues/372699
# See also https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1074804
"-Wno-incompatible-pointer-types"
# Opt out of C23 (and its stricter prototype rules) in GCC15
"-std=gnu17"
];
passthru.updateScript = gitUpdater { rev-prefix = "v"; };