<div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jul 23, 2019, 1:24 PM Kyle Guinn <<a href="mailto:elyk03@gmail.com">elyk03@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Tue, Jul 23, 2019, 14:11 David O'Shaughnessy <<a href="mailto:lists@osh.id.au" target="_blank" rel="noreferrer">lists@osh.id.au</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u><div><div style="font-family:Arial">On Tue, 23 Jul 2019, at 12:04 PM, Fellype wrote:<br></div><blockquote type="cite" id="m_2592859900995321132m_6469674682204313115qt"><div dir="ltr"><div style="font-family:Arial">Dear SBo Admins,<br></div><div><br></div><div>Is it possible to add the $NUMJOBS variable to SBo build scripts by default? At least for the next Slackware release?<br></div></div></blockquote><div style="font-family:Arial"><br></div><div style="font-family:Arial">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).</div></div></blockquote></div><div dir="auto"><br></div><div dir="auto">You can usually do something like MAKEFLAGS=-j4 ./foo.SlackBuild without having to modify anything.</div><div dir="auto"><br></div><div dir="auto">-Kyle</div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">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.</div><div dir="auto"><br></div><div dir="auto">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 cores).</div><div dir="auto"><br></div><div dir="auto"><div dir="auto">jbhansen@craven-moorhead:~$ cat /etc/profile.d/make-export.sh</div><div dir="auto">#!/bin/bash</div><div dir="auto"><br></div><div dir="auto"># Set make jobs to default to num cores + 1</div><div dir="auto">export MAKEFLAGS="-j$(expr $(nproc) + 1)"</div><div dir="auto"><br></div><div dir="auto">Jeremy</div></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>