mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-20 20:20:26 +03:00
_0verkill: add -fcommon workaround for gcc-10
Without the change the build against upstream gcc-10 build fails as: ld: sprite.o:/build/0verkill/data.h:171: multiple definition of `obj_attr'; server.o:/build/0verkill/data.h:171: first defined here ld: sprite.o:/build/0verkill/data.h:142: multiple definition of `weapon_name'; server.o:/build/0verkill/data.h:142: first defined here Use -fcommon as a workeround until upstream updates the code.
This commit is contained in:
parent
e680b5cf74
commit
e686d3e812
@ -27,6 +27,9 @@ gccStdenv.mkDerivation rec {
|
||||
autoupdate
|
||||
'';
|
||||
|
||||
# The code needs an update for gcc-10:
|
||||
# https://github.com/hackndev/0verkill/issues/7
|
||||
NIX_CFLAGS_COMPILE = "-fcommon";
|
||||
hardeningDisable = [ "all" ]; # Someday the upstream will update the code...
|
||||
|
||||
meta = with lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user