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:
parent
8420ca28de
commit
72e40c2bd2
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue