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:
parent
c5516d1d00
commit
af9d2c68b7
1 changed files with 5 additions and 0 deletions
|
@ -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 = ''
|
||||
|
|
Loading…
Reference in a new issue