From: Adam Tkac Date: Thu, 2 Sep 2010 15:42:31 +0000 (+0000) Subject: [Development] Compile Xvnc parallely, if possible. X-Git-Tag: v1.0.90~185 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c321219b026ff84a78b626ff3d5c9f4594d41247;p=tigervnc.git [Development] Compile Xvnc parallely, if possible. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4129 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- 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