gcc5: patch for musl compat/support

+6 -2
+6 -2
pkgs/development/compilers/gcc/5/default.nix
··· 1 - { stdenv, targetPackages, fetchurl, noSysDirs 2 , langC ? true, langCC ? true, langFortran ? false 3 , langObjC ? targetPlatform.isDarwin 4 , langObjCpp ? targetPlatform.isDarwin ··· 74 75 # This could be applied unconditionally but I don't want to cause a full 76 # Linux rebuild. 77 - ++ optional stdenv.cc.isClang ./libcxx38-and-above.patch; 78 79 javaEcj = fetchurl { 80 # The `$(top_srcdir)/ecj.jar' file is automatically picked up at
··· 1 + { stdenv, targetPackages, fetchurl, fetchpatch, noSysDirs 2 , langC ? true, langCC ? true, langFortran ? false 3 , langObjC ? targetPlatform.isDarwin 4 , langObjCpp ? targetPlatform.isDarwin ··· 74 75 # This could be applied unconditionally but I don't want to cause a full 76 # Linux rebuild. 77 + ++ optional stdenv.cc.isClang ./libcxx38-and-above.patch 78 + ++ optional stdenv.hostPlatform.isMusl (fetchpatch { 79 + url = https://raw.githubusercontent.com/richfelker/musl-cross-make/e84b1bd1fc12a3def33111ca6df522cd6e5ec361/patches/gcc-5.3.0/0001-musl.diff; 80 + sha256 = "0pppbf8myi2kjhm3z3479ihn1cm60kycfv60gj8yy1bs0pl1qcfm"; 81 + }); 82 83 javaEcj = fetchurl { 84 # The `$(top_srcdir)/ecj.jar' file is automatically picked up at