btar: add -fcommon workaround

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

    ld: listindex.o:/build/btar-1.1.1/loadindex.h:12: multiple definition of
      `ptr'; main.o:/build/btar-1.1.1/loadindex.h:12: first defined here
main
Sergei Trofimovich 2 years ago
parent f25d106e1d
commit b9fcbcb596
  1. 6
      pkgs/tools/backup/btar/default.nix

@ -16,6 +16,12 @@ stdenv.mkDerivation rec {
})
];
# Workaround build failure on -fno-common toolchains like upstream
# gcc-10. Otherwise build fails as:
# ld: listindex.o:/build/btar-1.1.1/loadindex.h:12: multiple definition of
# `ptr'; main.o:/build/btar-1.1.1/loadindex.h:12: first defined here
NIX_CFLAGS_COMPILE = "-fcommon";
buildInputs = [ librsync ];
makeFlags = [ "PREFIX=$(out)" ];

Loading…
Cancel
Save