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
This commit is contained in:
Sergei Trofimovich 2022-05-17 11:17:59 +01:00
parent 6323f3ccba
commit d78f677173

View file

@ -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";