From 8075fba3d08a569bfc46336a40cf8834379ded26 Mon Sep 17 00:00:00 2001 From: realies Date: Fri, 6 Jul 2018 10:58:24 +0100 Subject: [PATCH 1/2] make jobs 4 --- build-nginx.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-nginx.sh b/build-nginx.sh index d53d18e..0ba9524 100755 --- a/build-nginx.sh +++ b/build-nginx.sh @@ -156,7 +156,7 @@ cd $BPATH/$VERSION_NGINX --without-mail_imap_module \ --without-mail_pop3_module \ --without-mail_smtp_module -make +make -j4 make install make clean strip -s /usr/sbin/nginx* From 3d705e4dedd974185f1e452b4398856cefeeaafe Mon Sep 17 00:00:00 2001 From: realies Date: Fri, 6 Jul 2018 13:01:16 +0100 Subject: [PATCH 2/2] scale number of jobs based on cpu cores --- build-nginx.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-nginx.sh b/build-nginx.sh index 0ba9524..41d8747 100755 --- a/build-nginx.sh +++ b/build-nginx.sh @@ -156,7 +156,7 @@ cd $BPATH/$VERSION_NGINX --without-mail_imap_module \ --without-mail_pop3_module \ --without-mail_smtp_module -make -j4 +make -j$(grep -c ^processor /proc/cpuinfo) make install make clean strip -s /usr/sbin/nginx*