Blame SOURCES/make-4.3-j8k.patch

bbe682
diff -Nrup a/src/main.c b/src/main.c
bbe682
--- a/src/main.c	2016-05-31 03:17:26.000000000 -0400
bbe682
+++ b/src/main.c	2016-09-22 16:18:52.283889265 -0400
bbe682
@@ -2051,6 +2051,21 @@ main (int argc, char **argv, char **envp
bbe682
     }
bbe682
 #endif
bbe682
 
bbe682
+#ifdef PIPE_BUF
bbe682
+  if (job_slots > PIPE_BUF)
bbe682
+#elif defined _POSIX_PIPE_BUF
bbe682
+  if (job_slots > _POSIX_PIPE_BUF)
bbe682
+#else
bbe682
+  if (job_slots > 512)
bbe682
+#endif
bbe682
+    {
bbe682
+      O (error, NILF,
bbe682
+            _("More parallel jobs (-jN) than this platform can handle requested."));
bbe682
+      O (error, NILF, _("Resetting to single job (-j1) mode."));
bbe682
+      job_slots = 1;
bbe682
+    }
bbe682
+
bbe682
+
bbe682
   /* If we have >1 slot at this point, then we're a top-level make.
bbe682
      Set up the jobserver.
bbe682