about summary refs log tree commit diff
path: root/pkgs/applications/audio/gnaural
diff options
context:
space:
mode:
authorSergei Trofimovich <slyich@gmail.com>2022-06-05 19:48:01 +0100
committerehmry <ehmry@posteo.net>2022-06-05 20:43:44 -0500
commite4cb4bdb05605d691ca31b54703f2866197944ef (patch)
tree8daa5b369c2f0cbc165272407a12b9277d0773ad /pkgs/applications/audio/gnaural
parentaa705730115e076e86d2f3f7a953acb0c3c06846 (diff)
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
Diffstat (limited to 'pkgs/applications/audio/gnaural')
-rw-r--r--pkgs/applications/audio/gnaural/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/applications/audio/gnaural/default.nix b/pkgs/applications/audio/gnaural/default.nix
index 10c199d94b698..1cdea4629bbce 100644
--- a/pkgs/applications/audio/gnaural/default.nix
+++ b/pkgs/applications/audio/gnaural/default.nix
@@ -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 \