Commit 43b8ad27 authored by Sergei Trofimovich's avatar Sergei Trofimovich Committed by Bjørn Forsman
Browse files

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
parent 512c5114
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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'