diff --git a/pkgs/tools/networking/ncftp/default.nix b/pkgs/tools/networking/ncftp/default.nix index a43d5f4a88c8..8156caad7c3d 100644 --- a/pkgs/tools/networking/ncftp/default.nix +++ b/pkgs/tools/networking/ncftp/default.nix @@ -13,6 +13,12 @@ stdenv.mkDerivation rec { 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 = '' find -name Makefile.in | xargs sed -i '/^TMPDIR=/d'