Skip to content

Commit

Permalink
Merge pull request #199932 from trofi/zsnes-zhf
Browse files Browse the repository at this point in the history
zsnes: pin to c++14 to fix build with gcc-11
  • Loading branch information
AndersonTorres authored Nov 7, 2022
2 parents 29fc067 + eccb0a9 commit 6c49cc6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkgs/applications/emulators/zsnes/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ in stdenv.mkDerivation {

# 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";
# Use pre-c++17 standard (c++17 forbids throw annotations)
NIX_CFLAGS_COMPILE = "-fcommon -std=c++14";

preConfigure = ''
cd src
Expand Down

0 comments on commit 6c49cc6

Please sign in to comment.