diff options
author | Sergei Trofimovich <slyich@gmail.com> | 2022-06-03 07:07:02 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyich@gmail.com> | 2022-06-03 07:07:25 +0100 |
commit | af9d2c68b7bdf72cbf761bf78626a7230daf79b5 (patch) | |
tree | 2bb12052992975ec1b4498440a618b893f71f604 /pkgs/games/warsow | |
parent | c5516d1d0045d0bc777dc01aa314fbe163eb2680 (diff) |
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/warsow')
-rw-r--r-- | pkgs/games/warsow/engine.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/games/warsow/engine.nix b/pkgs/games/warsow/engine.nix index e796c589290a0..51974034b3f08 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 = '' |