uae: add -fcommon workaround

Workaround build failure on -fno-common toolchains like upstream
gcc-10. Otherwise build fails as:

    ld: bsdsocket.o:(.bss+0x0): multiple definition of
      `socketbases'; main.o:(.bss+0x2792c0): first defined here
This commit is contained in:
Sergei Trofimovich 2022-06-05 20:52:21 +01:00
parent 49c4223e98
commit 813520e624

View file

@ -15,6 +15,10 @@ stdenv.mkDerivation rec {
buildInputs = [ gtk2 alsa-lib SDL ];
hardeningDisable = [ "format" ];
# Workaround build failure on -fno-common toolchains:
# ld: bsdsocket.o:(.bss+0x0): multiple definition of
# `socketbases'; main.o:(.bss+0x2792c0): first defined here
NIX_CFLAGS_COMPILE = "-fcommon";
LDFLAGS = [ "-lm" ];
meta = {