From e9932eaa782675d97c96845adaa64075cd989bbb Mon Sep 17 00:00:00 2001 From: Fun Date: Mon, 8 Jan 2018 00:30:23 +0200 Subject: [PATCH] set the default value for JOBS (closes FS#1552) That will be the output of the nproc command, described as: Print the number of processing units available to the current process, which may be less than the number of online processors I guess we shouldn't use "nproc --all", as the user (who limits the number of processors for the build process) knows what is doing. --- pkgmk.conf | 3 +-- pkgmk.conf.5.in | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/pkgmk.conf b/pkgmk.conf index 781e8b9..cb6ac55 100644 --- a/pkgmk.conf +++ b/pkgmk.conf @@ -4,8 +4,7 @@ export CFLAGS="-O2 -march=x86-64 -pipe" export CXXFLAGS="${CFLAGS}" - -# export JOBS=$(nproc) +export JOBS=$(nproc) # export MAKEFLAGS="-j $JOBS" case ${PKGMK_ARCH} in diff --git a/pkgmk.conf.5.in b/pkgmk.conf.5.in index 742b326..2980f0c 100644 --- a/pkgmk.conf.5.in +++ b/pkgmk.conf.5.in @@ -22,7 +22,7 @@ Default: none \fBexport JOBS='NUMBER'\fP Set the number of commands to run simultaneously when building a port. .br -Default: none +Default: the output of the \fBnproc\fP command .TP \fBexport MAKEFLAGS='STRING'\fP Set make options. -- 2.15.1