[Slackbuilds-users] Feature request: add $NUMJOBS to SBo build scripts

Jeremy Hansen jebrhansen at gmail.com
Wed Jul 24 02:47:59 UTC 2019

On Tue, Jul 23, 2019, 1:24 PM Kyle Guinn <elyk03 at gmail.com> wrote:

> On Tue, Jul 23, 2019, 14:11 David O'Shaughnessy <lists at osh.id.au> wrote:
>> On Tue, 23 Jul 2019, at 12:04 PM, Fellype wrote:
>> Dear SBo Admins,
>> Is it possible to add the $NUMJOBS variable to SBo build scripts by
>> default? At least for the next Slackware release?
>> I think that this can be more reliably handled by the user's interface to
>> SBo. For example, sbotools lets you set JOBS in /etc/sbotools.conf (the
>> value of which is passed to make's "-j" argument).
> You can usually do something like MAKEFLAGS=-j4 ./foo.SlackBuild without
> having to modify anything.
> -Kyle

To go along with Kyle's suggestion, I set my MAKEFLAGS with a file in
/etc/profile.d/ directory (I call it make-export.sh), so it is
automatically applied when any user logs in.

The following will set MAKEFLAGS to the number of CPU threads + 1 (it says
cores, but Linux the number of threads the CPU is capable of as individual

jbhansen at craven-moorhead:~$ cat /etc/profile.d/make-export.sh

# Set make jobs to default to num cores + 1
export MAKEFLAGS="-j$(expr $(nproc) + 1)"


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20190723/6a5feb15/attachment.htm>

More information about the SlackBuilds-users mailing list