make.sh limit build to 23 parallel threads.
authorArne Fitzenreiter <arne_f@ipfire.org>
Sun, 10 Dec 2017 07:18:06 +0000 (08:18 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sun, 10 Dec 2017 07:18:06 +0000 (08:18 +0100)
perl will not work with more parallel build processes.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
make.sh

diff --git a/make.sh b/make.sh
index 7e2aec2..16d6edd 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -217,6 +217,12 @@ configure_build() {
                        parallelism=${cpu_max}
                fi
 
+               # limit to -j23 because perl will not build
+               # more
+               if [ ${parallelism} -gt 23 ]; then
+                       parallelism=23
+               fi
+
                MAKETUNING="-j${parallelism}"
        fi
 }