Blame SOURCES/make-4.3-j8k.patch

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