diff options
author | Sergei Trofimovich <slyich@gmail.com> | 2022-06-05 07:52:16 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyich@gmail.com> | 2022-06-05 07:52:34 +0100 |
commit | 72e40c2bd25f4b735c167c67c5f0ed0a63f2da59 (patch) | |
tree | 87d09164418e212549aeabbd0c6ceb7fbe0a4d31 /pkgs/applications/emulators/zsnes | |
parent | 8420ca28deba06a3c073c52cd3420cfa25902f42 (diff) |
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
Diffstat (limited to 'pkgs/applications/emulators/zsnes')
-rw-r--r-- | pkgs/applications/emulators/zsnes/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/applications/emulators/zsnes/default.nix b/pkgs/applications/emulators/zsnes/default.nix index a14109bc85722..956604cd6cc62 100644 --- a/pkgs/applications/emulators/zsnes/default.nix +++ b/pkgs/applications/emulators/zsnes/default.nix @@ -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 |