summary refs log tree commit diff
path: root/pkgs/games/liquidwar
diff options
context:
space:
mode:
authorVladimír Čunát <v@cunat.cz>2023-02-05 18:34:47 +0100
committerVladimír Čunát <v@cunat.cz>2023-02-05 18:34:47 +0100
commitcfc056287cb29a7bc434f0a2334b149f6a057094 (patch)
treeca179e1e48318685d498356f9cc7642878184684 /pkgs/games/liquidwar
parent52bef350535ed22e1fbf9e7ef20c437d223ee92b (diff)
downloadnixpkgs-cfc056287cb29a7bc434f0a2334b149f6a057094.tar
nixpkgs-cfc056287cb29a7bc434f0a2334b149f6a057094.tar.gz
nixpkgs-cfc056287cb29a7bc434f0a2334b149f6a057094.tar.bz2
nixpkgs-cfc056287cb29a7bc434f0a2334b149f6a057094.tar.lz
nixpkgs-cfc056287cb29a7bc434f0a2334b149f6a057094.tar.xz
nixpkgs-cfc056287cb29a7bc434f0a2334b149f6a057094.tar.zst
nixpkgs-cfc056287cb29a7bc434f0a2334b149f6a057094.zip
treewide: another round of gcc12 fixups
Diffstat (limited to 'pkgs/games/liquidwar')
-rw-r--r--pkgs/games/liquidwar/default.nix7
1 files changed, 4 insertions, 3 deletions
diff --git a/pkgs/games/liquidwar/default.nix b/pkgs/games/liquidwar/default.nix
index a3532fa6e19..9d9e4243452 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"
   ];