Merge pull request #173017 from trofi/workaround-fno-common-for-freebayes

freebayes: add -fcommon workaround
This commit is contained in:
Bobby Rong 2022-05-22 13:39:14 +08:00 committed by GitHub
commit 3b468e68b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,6 +15,12 @@ stdenv.mkDerivation rec {
buildInputs = [ zlib bzip2 xz ];
# Workaround build failure on -fno-common toolchains like upstream
# gcc-10. Otherwise build fails as:
# ld: foomatic_rip-options.o:/build/foomatic-filters-4.0.17/options.c:49: multiple definition of `cupsfilter';
# foomatic_rip-foomaticrip.o:/build/foomatic-filters-4.0.17/foomaticrip.c:158: first defined here
NIX_CFLAGS_COMPILE = "-fcommon";
installPhase = ''
install -vD bin/freebayes bin/bamleftalign scripts/* -t $out/bin
'';