diff options
author | Vladimír Čunát <v@cunat.cz> | 2023-02-05 18:34:47 +0100 |
---|---|---|
committer | Vladimír Čunát <v@cunat.cz> | 2023-02-05 18:34:47 +0100 |
commit | cfc056287cb29a7bc434f0a2334b149f6a057094 (patch) | |
tree | ca179e1e48318685d498356f9cc7642878184684 /pkgs/games/liquidwar | |
parent | 52bef350535ed22e1fbf9e7ef20c437d223ee92b (diff) |
treewide: another round of gcc12 fixups
Diffstat (limited to 'pkgs/games/liquidwar')
-rw-r--r-- | pkgs/games/liquidwar/default.nix | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pkgs/games/liquidwar/default.nix b/pkgs/games/liquidwar/default.nix index a3532fa6e1980..9d9e4243452c7 100644 --- a/pkgs/games/liquidwar/default.nix +++ b/pkgs/games/liquidwar/default.nix @@ -30,11 +30,12 @@ stdenv.mkDerivation rec { hardeningDisable = [ "format" ]; - NIX_CFLAGS_COMPILE = [ - "-Wno-error=deprecated-declarations" - # Needed with GCC 12 + NIX_CFLAGS_COMPILE = lib.optionals (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "12") [ + # Needed with GCC 12 but problematic with some old GCCs "-Wno-error=address" "-Wno-error=use-after-free" + ] ++ [ + "-Wno-error=deprecated-declarations" # Avoid GL_GLEXT_VERSION double definition " -DNO_SDL_GLEXT" ]; |