]> source.dussan.org Git - tigervnc.git/commitdiff
[Development] Compile Xvnc parallely, if possible.
authorAdam Tkac <atkac@redhat.com>
Thu, 2 Sep 2010 15:42:31 +0000 (15:42 +0000)
committerAdam Tkac <atkac@redhat.com>
Thu, 2 Sep 2010 15:42:31 +0000 (15:42 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4129 3789f03b-4d11-0410-bbf8-ca57d06f2519

unix/build-xorg

index bce07af7608e3e9c8d404c44904c3476b1d09dfe..ea638d1517658c7ce50218ff325d9f4e60a78500 100755 (executable)
@@ -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