ncftp: add -fcommon workaround

Workaround build failure on -fno-common toolchains like upstream
gcc-10. Otherwise build fails as:

    ld: bookmark.o: (.bss+0x20): multiple definition of `gBm';
      gpshare.o:(.bss+0x0): first defined here
This commit is contained in:
Sergei Trofimovich 2022-05-22 17:30:21 +01:00 committed by Bjørn Forsman
parent 512c5114ce
commit 43b8ad27aa

View file

@ -13,6 +13,12 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true; enableParallelBuilding = true;
# Workaround build failure on -fno-common toolchains like upstream
# gcc-10. Otherwise build fails as:
# ld: bookmark.o: (.bss+0x20): multiple definition of `gBm';
# gpshare.o:(.bss+0x0): first defined here
NIX_CFLAGS_COMPILE = "-fcommon";
preConfigure = '' preConfigure = ''
find -name Makefile.in | xargs sed -i '/^TMPDIR=/d' find -name Makefile.in | xargs sed -i '/^TMPDIR=/d'