From ed1cf51af25dc194e0fa51d78be215a92e495a34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Gallou=C3=ABt?= Date: Mon, 16 Sep 2019 15:20:41 +0000 Subject: [PATCH] Don't use -j alone for portability MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Adrien Gallouët --- sodium.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sodium.sh b/sodium.sh index 93d9878..53485e2 100755 --- a/sodium.sh +++ b/sodium.sh @@ -23,5 +23,7 @@ rm -rf libsodium-stable tar zxf "$dir/$file" cd libsodium-stable || exit 1 +NPROC=$(sysctl -n hw.ncpu || nproc) 2>/dev/null + ./configure ${1+--host=$1} --enable-minimal --disable-dependency-tracking --enable-static --disable-shared -make -j +make "-j$((NPROC+1))"