summary refs log tree commit diff
path: root/pkgs/games
diff options
context:
space:
mode:
authorSergei Trofimovich <slyich@gmail.com>2022-06-03 07:07:02 +0100
committerSergei Trofimovich <slyich@gmail.com>2022-06-03 07:07:25 +0100
commitaf9d2c68b7bdf72cbf761bf78626a7230daf79b5 (patch)
tree2bb12052992975ec1b4498440a618b893f71f604 /pkgs/games
parentc5516d1d0045d0bc777dc01aa314fbe163eb2680 (diff)
downloadnixpkgs-af9d2c68b7bdf72cbf761bf78626a7230daf79b5.tar
nixpkgs-af9d2c68b7bdf72cbf761bf78626a7230daf79b5.tar.gz
nixpkgs-af9d2c68b7bdf72cbf761bf78626a7230daf79b5.tar.bz2
nixpkgs-af9d2c68b7bdf72cbf761bf78626a7230daf79b5.tar.lz
nixpkgs-af9d2c68b7bdf72cbf761bf78626a7230daf79b5.tar.xz
nixpkgs-af9d2c68b7bdf72cbf761bf78626a7230daf79b5.tar.zst
nixpkgs-af9d2c68b7bdf72cbf761bf78626a7230daf79b5.zip
warsow-engine: add -fcommon workaround
Workaround build failure on -fno-common toolchains like upstream
gcc-10. Otherwise build fails as:

    ld: CMakeFiles/wswtv_server.dir/__/unix/unix_time.c.o:(.bss+0x8): multiple definition of
      `c_pointcontents'; CMakeFiles/wswtv_server.dir/__/null/ascript_null.c.o:(.bss+0x8): first defined here
Diffstat (limited to 'pkgs/games')
-rw-r--r--pkgs/games/warsow/engine.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/games/warsow/engine.nix b/pkgs/games/warsow/engine.nix
index e796c589290..51974034b3f 100644
--- a/pkgs/games/warsow/engine.nix
+++ b/pkgs/games/warsow/engine.nix
@@ -25,6 +25,11 @@ stdenv.mkDerivation rec {
     libpng
   ];
 
+  # Workaround build failure on -fno-common toolchains:
+  #   ld: CMakeFiles/wswtv_server.dir/__/unix/unix_time.c.o:(.bss+0x8): multiple definition of
+  #     `c_pointcontents'; CMakeFiles/wswtv_server.dir/__/null/ascript_null.c.o:(.bss+0x8): first defined here
+  NIX_CFLAGS_COMPILE = "-fcommon";
+
   cmakeFlags = [ "-DQFUSION_GAME=Warsow" ];
 
   preConfigure = ''