Merge pull request #172291 from trofi/workaround-fno-common-for-cataract

cataract: add -fcommon workaround

authored by Bobby Rong and committed by GitHub 267e2320 92e0e80f

+6
+6
pkgs/applications/misc/cataract/build.nix
··· 26 26 sed -i 's|#include <exiv2/exif.hpp>|#include <exiv2/exiv2.hpp>|' src/jpeg-utils.cpp 27 27 ''; 28 28 29 + # Add workaround for -fno-common toolchains like upstream gcc-10 to 30 + # avoid build failures like: 31 + # ld: stats.o:/build/cataract-675e647/src/stats.h:24: multiple definition of 32 + # `stats_images'; cgg.o:/build/cataract-675e647/src/stats.h:24: first defined here 33 + NIX_CFLAGS_COMPILE = "-fcommon"; 34 + 29 35 installPhase = '' 30 36 mkdir $out/{bin,share} -p 31 37 cp src/cgg{,-dirgen} $out/bin/