summary refs log tree commit diff
path: root/pkgs/games
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2022-06-03 17:03:53 +0200
committerGitHub <noreply@github.com>2022-06-03 17:03:53 +0200
commitf34837989c12ba8c0a9653ea3ea3f73e2f7d45e9 (patch)
treeabef17cb45c74c4a18b126c61e510568584e7166 /pkgs/games
parente8db29b3b301e8e6d4b65a43a5de6f09870dbd66 (diff)
parentaf9d2c68b7bdf72cbf761bf78626a7230daf79b5 (diff)
downloadnixpkgs-f34837989c12ba8c0a9653ea3ea3f73e2f7d45e9.tar
nixpkgs-f34837989c12ba8c0a9653ea3ea3f73e2f7d45e9.tar.gz
nixpkgs-f34837989c12ba8c0a9653ea3ea3f73e2f7d45e9.tar.bz2
nixpkgs-f34837989c12ba8c0a9653ea3ea3f73e2f7d45e9.tar.lz
nixpkgs-f34837989c12ba8c0a9653ea3ea3f73e2f7d45e9.tar.xz
nixpkgs-f34837989c12ba8c0a9653ea3ea3f73e2f7d45e9.tar.zst
nixpkgs-f34837989c12ba8c0a9653ea3ea3f73e2f7d45e9.zip
Merge pull request #176057 from trofi/workaround-fno-common-for-warsow-engine
warsow-engine: add -fcommon workaround
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 = ''