diff options
author | Sergei Trofimovich <slyich@gmail.com> | 2022-05-29 22:06:07 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyich@gmail.com> | 2022-05-29 22:06:51 +0100 |
commit | ba16b79ddf5701ac1bc7de2a8bb04471a5d20adb (patch) | |
tree | 446c9694910facbb4af38090f659b872569c7ff1 | |
parent | 59df0efd22e5c77030e30e5049c99e0e5353f68c (diff) | |
download | nixpkgs-ba16b79ddf5701ac1bc7de2a8bb04471a5d20adb.tar nixpkgs-ba16b79ddf5701ac1bc7de2a8bb04471a5d20adb.tar.gz nixpkgs-ba16b79ddf5701ac1bc7de2a8bb04471a5d20adb.tar.bz2 nixpkgs-ba16b79ddf5701ac1bc7de2a8bb04471a5d20adb.tar.lz nixpkgs-ba16b79ddf5701ac1bc7de2a8bb04471a5d20adb.tar.xz nixpkgs-ba16b79ddf5701ac1bc7de2a8bb04471a5d20adb.tar.zst nixpkgs-ba16b79ddf5701ac1bc7de2a8bb04471a5d20adb.zip |
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
-rw-r--r-- | pkgs/games/tinyfugue/default.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/games/tinyfugue/default.nix b/pkgs/games/tinyfugue/default.nix index 763241f2909..e75d2f12b94 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"; |