krb5: Fix build with gcc=15

This commit is contained in:
Dmitry Bogatov
2025-08-18 12:50:07 +00:00
parent 602de53257
commit 323636a6af
+7 -2
View File
@@ -53,8 +53,13 @@ stdenv.mkDerivation rec {
# stdenv will take care of overriding bindir, sbindir, etc. such that "out" contains the binaries.
prefix = builtins.placeholder "lib";
env = lib.optionalAttrs stdenv.hostPlatform.isStatic {
NIX_CFLAGS_COMPILE = "-fcommon";
env = {
# The release 1.21.3 is not compatible with c23, which changed the meaning of
#
# void foo();
#
# declaration.
NIX_CFLAGS_COMPILE = "-std=gnu17" + lib.optionalString stdenv.hostPlatform.isStatic " -fcommon";
};
configureFlags = [