diff options
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/GNUmakefile b/GNUmakefile index 2c7856db7b4..accedbbbe4b 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -276,7 +276,10 @@ ifndef NPROCS ifeq ($(OS), Linux) NPROCS:=$(shell nproc) endif - ifneq (,$(filter $(OS),Darwin FreeBSD NetBSD)) + ifeq ($(OS), NetBSD) + NPROCS:=$(shell getconf NPROCESSORS_ONLN) + endif + ifneq (,$(filter $(OS),Darwin FreeBSD)) NPROCS:=$(shell sysctl -n hw.ncpu) endif endif |