Merge pull request #173969 from trofi/workaround-fno-common-for-lincity

lincity: add -fcommon workaround
This commit is contained in:
Sandro 2022-05-25 00:43:18 +02:00 committed by GitHub
commit 8bbd720918
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,6 +25,12 @@ stdenv.mkDerivation rec {
})
];
# Workaround build failure on -fno-common toolchains like upstream
# gcc-10. Otherwise build fails as:
# ld: modules/.libs/libmodules.a(rocket_pad.o):/build/lincity-1.13.1/modules/../screen.h:23:
# multiple definition of `monthgraph_style'; ldsvguts.o:/build/lincity-1.13.1/screen.h:23: first defined here
NIX_CFLAGS_COMPILE = "-fcommon";
meta = with lib; {
description = "City simulation game";
license = licenses.gpl2Plus;