treewide: add -fpermissive due to configuration error with gcc_14
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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; {
|
||||
|
||||
Reference in New Issue
Block a user