Commit abe105d5 authored by Rafaël Carré's avatar Rafaël Carré

contribs: use make -jX

Where X is the number of CPU detected on Linux, or 1
TODO: detection on BSD, OSX, etc...
parent 8c723814
......@@ -380,3 +380,16 @@ if test $HAVE_DARWIN_64; then
echo "*****************************************************************"
set -x
fi
case `uname` in
Linux)
CPUS=`grep -c ^processor /proc/cpuinfo`
;;
*)
CPUS=1 # default
;;
esac
echo "MAKEJOBS = -j$CPUS" >> config.mak
echo
echo "Using $CPUS processors"
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment