mlterm: force c17 on gcc to fix build with gcc15

This commit is contained in:
7c6f434c
2026-01-04 14:43:44 +01:00
parent 94e0939d7c
commit 16eff406bc
+6 -2
View File
@@ -181,8 +181,12 @@ stdenv.mkDerivation (finalAttrs: {
--replace "-m 4755 -o root" " "
'';
env = lib.optionalAttrs stdenv.cc.isClang {
NIX_CFLAGS_COMPILE = "-Wno-error=int-conversion -Wno-error=incompatible-function-pointer-types";
env = {
NIX_CFLAGS_COMPILE =
(lib.optionalString stdenv.cc.isClang "-Wno-error=int-conversion -Wno-error=incompatible-function-pointer-types ")
# GCC15 defaults to C23 which is stricter about prototypes
# There are upstream fixes, but they are not in 3.9.4 release
+ (lib.optionalString stdenv.cc.isGNU " -std=c17 ");
};
configureFlags = [