From: Arne Fitzenreiter Date: Sun, 10 Dec 2017 07:18:06 +0000 (+0100) Subject: make.sh limit build to 23 parallel threads. X-Git-Tag: v2.19-core117~1^2~2 X-Git-Url: http://git.ipfire.org/?p=ipfire-2.x.git;a=commitdiff_plain;h=979f8700b26fc442f021f8a6fe891e05b76aabe0;hp=ce9264a1c1ce3d6812b59204a06041a69bd24e95 make.sh limit build to 23 parallel threads. perl will not work with more parallel build processes. Signed-off-by: Arne Fitzenreiter --- diff --git a/make.sh b/make.sh index 7e2aec2573..16d6eddff1 100755 --- 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 }