summary refs log tree commit diff
path: root/pkgs/development/tools/build-managers/gnumake/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/tools/build-managers/gnumake/default.nix')
-rw-r--r--pkgs/development/tools/build-managers/gnumake/default.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/pkgs/development/tools/build-managers/gnumake/default.nix b/pkgs/development/tools/build-managers/gnumake/default.nix
index cf33e7a5bbc3..cb0ab18a40f5 100644
--- a/pkgs/development/tools/build-managers/gnumake/default.nix
+++ b/pkgs/development/tools/build-managers/gnumake/default.nix
@@ -26,6 +26,21 @@ stdenv.mkDerivation {
       ./impure-dirs.patch
     ];
 
+  # a bunch of patches from Gentoo, mostly should be from upstream (unreleased)
+  preConfigure = ''
+      patch -i     ${./archives-many-objs.patch}
+      patch -i     ${./MAKEFLAGS-reexec.patch}
+      patch -i     ${./memory-corruption.patch}
+      patch -i     ${./glob-speedup.patch}
+      patch -i     ${./copy-on-expand.patch}
+      patch -i     ${./oneshell.patch}
+      patch -i     ${./parallel-remake.patch}
+      patch -p1 -i ${./intermediate-parallel.patch}
+      patch -i     ${./construct-command-line.patch}
+      patch -i     ${./long-command-line.patch}
+      patch -i     ${./darwin-library_search-dylib.patch}
+  '';
+
   meta = {
     description = "GNU Make, a program controlling the generation of non-source files from sources";