diff options
author | Sergei Trofimovich <slyich@gmail.com> | 2022-05-17 11:17:59 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyich@gmail.com> | 2022-05-17 11:18:18 +0100 |
commit | d78f67717331fbb34a89abf339fab7eb6aecc0b6 (patch) | |
tree | 57af8b0aa9a91eaa27fc3574c70a3258f13e50eb /pkgs/games/liquidwar | |
parent | 6323f3ccbaa5bacf5a62244c3ad6fca065f319d4 (diff) | |
download | nixpkgs-d78f67717331fbb34a89abf339fab7eb6aecc0b6.tar nixpkgs-d78f67717331fbb34a89abf339fab7eb6aecc0b6.tar.gz nixpkgs-d78f67717331fbb34a89abf339fab7eb6aecc0b6.tar.bz2 nixpkgs-d78f67717331fbb34a89abf339fab7eb6aecc0b6.tar.lz nixpkgs-d78f67717331fbb34a89abf339fab7eb6aecc0b6.tar.xz nixpkgs-d78f67717331fbb34a89abf339fab7eb6aecc0b6.tar.zst nixpkgs-d78f67717331fbb34a89abf339fab7eb6aecc0b6.zip |
liquidwar5: add -fcommon workaround
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
Diffstat (limited to 'pkgs/games/liquidwar')
-rw-r--r-- | pkgs/games/liquidwar/5.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/games/liquidwar/5.nix b/pkgs/games/liquidwar/5.nix index e95371ec5ea..eab7941cbd1 100644 --- a/pkgs/games/liquidwar/5.nix +++ b/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"; |