Merge pull request #176444 from trofi/workaround-fno-common-for-libagar_test

libagar_test: add -fcommon workaround
This commit is contained in:
Sandro
2022-06-08 00:11:47 +02:00
committed by GitHub
@@ -7,6 +7,12 @@ stdenv.mkDerivation {
sourceRoot = "agar-1.5.0/tests";
# Workaround build failure on -fno-common toolchains:
# ld: textdlg.o:(.bss+0x0): multiple definition of `someString';
# configsettings.o:(.bss+0x0): first defined here
# TODO: the workaround can be removed once nixpkgs updates to 1.6.0.
NIX_CFLAGS_COMPILE = "-fcommon";
preConfigure = ''
substituteInPlace configure.in \
--replace '_BSD_SOURCE' '_DEFAULT_SOURCE'