summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
Diffstat (limited to 'unix')
-rwxr-xr-xunix/build-xorg4
1 files changed, 4 insertions, 0 deletions
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