GNUmakefile: do number of cores detection same as BSD, system_profiler apparently changed between versions.

This commit is contained in:
Brecht Van Lommel 2011-03-14 16:11:56 +00:00
parent f4e16def46
commit 1c952cd933

@ -53,7 +53,7 @@ ifeq ($(OS), Linux)
NPROCS:=$(shell grep -c ^processor /proc/cpuinfo)
endif
ifeq ($(OS), Darwin)
NPROCS:=$(shell system_profiler SPHardwareDataType | awk '/Total Number Of Cores/ {print $5}{next;};')
NPROCS:=$(shell sysctl -a | grep "hw.ncpu " | cut -d" " -f3)
# make install not support on mac yet
DEFAULT_TARGET=
endif