gnaural: add -fcommon workaround

Workaround build failure on -fno-common toolchains like upstream
gcc-10. Otherwise build fails as:

    ld: src/net/../gnauralnet.h:233: multiple definition of `GN_ScheduleFingerprint';
      src/net/../../src/gnauralnet.h:233: first defined here
This commit is contained in:
Sergei Trofimovich 2022-06-05 19:48:01 +01:00 committed by ehmry
parent aa70573011
commit e4cb4bdb05

View file

@ -12,6 +12,11 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkg-config ];
buildInputs = [ gtk2 libsndfile portaudio ];
# Workaround build failure on -fno-common toolchains:
# ld: src/net/../gnauralnet.h:233: multiple definition of `GN_ScheduleFingerprint';
# src/net/../../src/gnauralnet.h:233: first defined here
NIX_CFLAGS_COMPILE = "-fcommon";
postInstall = ''
mkdir -p $out/share/applications
substitute \