]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
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 7e2aec257372412b1b57565e47672e2b738a1bc7..16d6eddff1bb64cf9a94e1cf72d89d44d67d037c 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
 }