treewide: add -fpermissive due to configuration error with gcc_14

This commit is contained in:
Fabián Heredia Montiel
2024-09-11 01:44:17 -06:00
parent a4145a81d1
commit 438ed81a34
3 changed files with 13 additions and 1 deletions
@@ -65,7 +65,11 @@ stdenv.mkDerivation rec {
libXrender
]);
NIX_LDFLAGS = "-lgcc_s";
env = {
NIX_LDFLAGS = "-lgcc_s";
} // lib.optionalAttrs stdenv.cc.isGNU {
NIX_CFLAGS_COMPILE = "-fpermissive";
};
configureFlags = [
"--enable-sdl"
+4
View File
@@ -27,6 +27,10 @@ stdenv.mkDerivation rec {
makeFlags = [ "GMAKE_NOWARN=true" "INS_BASE=/" "INS_RBASE=/" "DESTDIR=${placeholder "out"}" ];
env = lib.optionalAttrs stdenv.cc.isGNU {
NIX_CFLAGS_COMPILE = "-fpermissive";
};
enableParallelBuilding = false; # parallel building fails on some linux machines
hardeningDisable = lib.optional stdenv.hostPlatform.isMusl "fortify";
+4
View File
@@ -50,6 +50,10 @@ stdenv.mkDerivation rec {
++ lib.optional stdenv.cc.isClang autoreconfHook
++ lib.optionals stdenv.isCygwin [ autoconf automake libtool ];
env = lib.optionalAttrs stdenv.cc.isGNU {
NIX_CFLAGS_COMPILE = "-fpermissive";
};
doCheck = false; # fails
meta = with lib; {