Merge pull request #175364 from trofi/workaround-fno-common-for-tinyfugue

tinyfugue: add -fcommon workaround
This commit is contained in:
Sandro 2022-05-30 01:39:41 +02:00 committed by GitHub
commit b99e13ff52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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";