alpine: set std=gnu17 to fix build with gcc15
This commit is contained in:
@@ -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"; };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user