diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-11-18 08:27:06 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-11-18 08:27:06 +0300 |
commit | 99640d06223428efef58a42438d4021d7d983e67 (patch) | |
tree | 8d7479eac1a3d6f3e222da4a6ea71e7242fa0f30 /GNUmakefile | |
parent | 047d2b055978ffa59697261656f1f77c48b9573a (diff) |
Fix building on NetBSD
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 |