Merge pull request #173005 from trofi/workaround-fno-common-for-foomatic-filters

foomatic-filters: add -fcommon workaround
This commit is contained in:
7c6f434c 2022-05-14 13:04:58 +00:00 committed by GitHub
commit 02cebc60c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,6 +25,12 @@ stdenv.mkDerivation rec {
substituteInPlace foomaticrip.c --replace /bin/bash ${stdenv.shell}
'';
# 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";
installTargets = [ "install-cups" ];
installFlags = [