zsnes: add -fcommon workaround

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

    ld: initc.o:(.bss+0x28): multiple definition of `HacksDisable'; cfg.o:(.bss+0x59e3): first defined here
This commit is contained in:
Sergei Trofimovich 2022-06-05 07:52:16 +01:00
parent 8420ca28de
commit 72e40c2bd2

View file

@ -32,6 +32,10 @@ in stdenv.mkDerivation {
done
'';
# Workaround build failure on -fno-common toolchains:
# ld: initc.o:(.bss+0x28): multiple definition of `HacksDisable'; cfg.o:(.bss+0x59e3): first defined here
NIX_CFLAGS_COMPILE = "-fcommon";
preConfigure = ''
cd src
sed -i "/^STRIP/d" configure