Merge pull request #176340 from trofi/workaround-fno-common-for-zsnes

zsnes: add -fcommon workaround
This commit is contained in:
Sandro 2022-06-05 13:11:54 +02:00 committed by GitHub
commit 528d858336
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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