Merge pull request #173375 from trofi/workaround-fno-common-for-liquidwar5

liquidwar5: add -fcommon workaround
main
Artturi 2 years ago committed by GitHub
commit 77a35ce718
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      pkgs/games/liquidwar/5.nix

@ -13,7 +13,14 @@ stdenv.mkDerivation rec {
hardeningDisable = [ "format" ];
NIX_CFLAGS_COMPILE = [ "-lm" ];
NIX_CFLAGS_COMPILE = [
# Workaround build failure on -fno-common toolchains like upstream
# gcc-10. Otherwise build fails as:
# ld: random.o:(.bss+0x0): multiple definition of `LW_RANDOM_ON'; game.o:(.bss+0x4): first defined here
"-fcommon"
"-lm"
];
meta = with lib; {
description = "The classic version of a quick tactics game LiquidWar";

Loading…
Cancel
Save