audiofile: fix build with gcc9

This commit is contained in:
Franz Pletz 2019-11-02 16:12:41 +01:00
parent e39773fe5b
commit c097caf6d7
No known key found for this signature in database
GPG key ID: 846FDED7792617B4

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, fetchpatch, alsaLib, AudioUnit, CoreServices }:
{ stdenv, lib, fetchurl, fetchpatch, alsaLib, AudioUnit, CoreServices }:
let
@ -25,6 +25,9 @@ stdenv.mkDerivation rec {
sha256 = "0rb927zknk9kmhprd8rdr4azql4gn2dp75a36iazx2xhkbqhvind";
};
# fix build with gcc9
NIX_CFLAGS_LINK = lib.optional (stdenv.system == "i686-linux") "-lgcc_s";
patches = [
./gcc-6.patch
./CVE-2015-7747.patch