3
0
Fork 0
forked from mirrors/nixpkgs

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
This commit is contained in:
Sergei Trofimovich 2022-06-03 07:07:02 +01:00
parent c5516d1d00
commit af9d2c68b7

View file

@ -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 = ''