Merge pull request #173865 from trofi/workaround-fno-common-for-jpeg-archive

jpeg-archive: add -fcommon workaround
main
Rick van Schijndel 2 years ago committed by GitHub
commit 35e19f9daa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      pkgs/applications/graphics/jpeg-archive/default.nix

@ -21,6 +21,12 @@ stdenv.mkDerivation {
substituteInPlace Makefile --replace 'LIBJPEG =' 'LIBJPEG ?='
'';
# Workaround build failure on -fno-common toolchains like upstream
# gcc-10. Otherwise build fails as:
# ld: src/util.o:(.bss+0x0): multiple definition of `progname'; /build/ccBZT2Za.o:(.bss+0x20): first defined here
# https://github.com/danielgtaylor/jpeg-archive/issues/119
NIX_CFLAGS_COMPILE = "-fcommon";
makeFlags = [
"CC=${stdenv.cc.targetPrefix}cc"
"PREFIX=$(out)"

Loading…
Cancel
Save