From c321219b026ff84a78b626ff3d5c9f4594d41247 Mon Sep 17 00:00:00 2001 From: Adam Tkac Date: Thu, 2 Sep 2010 15:42:31 +0000 Subject: [PATCH] [Development] Compile Xvnc parallely, if possible. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4129 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- unix/build-xorg | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/unix/build-xorg b/unix/build-xorg index bce07af7..ea638d15 100755 --- a/unix/build-xorg +++ b/unix/build-xorg @@ -234,6 +234,10 @@ usage () exit 1 } +if [ -x '/usr/bin/getconf' ]; then + MAKE_PARALLEL=`/usr/bin/getconf _NPROCESSORS_ONLN 2>&1` + [ "$MAKE_PARALLEL" -gt 1 ] && MAKE="$MAKE -j$MAKE_PARALLEL" +fi while [ $# -gt 0 ] do -- 2.39.5