Merge pull request #173632 from trofi/workaround-fno-common-for-btar

btar: add -fcommon workaround
This commit is contained in:
Sandro
2022-05-20 11:36:14 +02:00
committed by GitHub
+6
View File
@@ -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)" ];