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

freebayes: add -fcommon workaround

authored by Bobby Rong and committed by GitHub 3b468e68 2ad9dfd5

+6
+6
pkgs/applications/science/biology/freebayes/default.nix
··· 15 16 buildInputs = [ zlib bzip2 xz ]; 17 18 installPhase = '' 19 install -vD bin/freebayes bin/bamleftalign scripts/* -t $out/bin 20 '';
··· 15 16 buildInputs = [ zlib bzip2 xz ]; 17 18 + # Workaround build failure on -fno-common toolchains like upstream 19 + # gcc-10. Otherwise build fails as: 20 + # ld: foomatic_rip-options.o:/build/foomatic-filters-4.0.17/options.c:49: multiple definition of `cupsfilter'; 21 + # foomatic_rip-foomaticrip.o:/build/foomatic-filters-4.0.17/foomaticrip.c:158: first defined here 22 + NIX_CFLAGS_COMPILE = "-fcommon"; 23 + 24 installPhase = '' 25 install -vD bin/freebayes bin/bamleftalign scripts/* -t $out/bin 26 '';