From ba16b79ddf5701ac1bc7de2a8bb04471a5d20adb Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sun, 29 May 2022 22:06:07 +0100 Subject: [PATCH] tinyfugue: add -fcommon workaround Workaround build failure on -fno-common toolchains like upstream gcc-10. Otherwise build fails as: ld: world.o:/build/tf-50b8/src/socket.h:24: multiple definition of `world_decl'; command.o:/build/tf-50b8/src/socket.h:24: first defined here --- pkgs/games/tinyfugue/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/games/tinyfugue/default.nix b/pkgs/games/tinyfugue/default.nix index 763241f2909d..e75d2f12b945 100644 --- a/pkgs/games/tinyfugue/default.nix +++ b/pkgs/games/tinyfugue/default.nix @@ -23,6 +23,12 @@ stdenv.mkDerivation rec { [ ncurses zlib ] ++ optional sslSupport openssl; + # Workaround build failure on -fno-common toolchains like upstream + # gcc-10. Otherwise build fails as: + # ld: world.o:/build/tf-50b8/src/socket.h:24: multiple definition of + # `world_decl'; command.o:/build/tf-50b8/src/socket.h:24: first defined here + NIX_CFLAGS_COMPILE="-fcommon"; + meta = { homepage = "http://tinyfugue.sourceforge.net/"; description = "A terminal UI, screen-oriented MUD client";