cataract: add -fcommon workaround
Without the change -fno-common toolchains like upstream gcc-10 fail to build as: ld: stats.o:/build/cataract-675e647/src/stats.h:24: multiple definition of `stats_images'; cgg.o:/build/cataract-675e647/src/stats.h:24: first defined here
This commit is contained in:
parent
ab456c4d45
commit
c95a1d4724
1 changed files with 6 additions and 0 deletions
|
@ -26,6 +26,12 @@ stdenv.mkDerivation {
|
||||||
sed -i 's|#include <exiv2/exif.hpp>|#include <exiv2/exiv2.hpp>|' src/jpeg-utils.cpp
|
sed -i 's|#include <exiv2/exif.hpp>|#include <exiv2/exiv2.hpp>|' src/jpeg-utils.cpp
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
# Add workaround for -fno-common toolchains like upstream gcc-10 to
|
||||||
|
# avoid build failures like:
|
||||||
|
# ld: stats.o:/build/cataract-675e647/src/stats.h:24: multiple definition of
|
||||||
|
# `stats_images'; cgg.o:/build/cataract-675e647/src/stats.h:24: first defined here
|
||||||
|
NIX_CFLAGS_COMPILE = "-fcommon";
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir $out/{bin,share} -p
|
mkdir $out/{bin,share} -p
|
||||||
cp src/cgg{,-dirgen} $out/bin/
|
cp src/cgg{,-dirgen} $out/bin/
|
||||||
|
|
Loading…
Reference in a new issue