<div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno dom 3 apr 2022 alle ore 20:59 Slackbuilds <<a href="mailto:sbo@linuxgalaxy.org">sbo@linuxgalaxy.org</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Most of my testing for submission is in a VM (either 2, 4 or 6 cores,<br>
depending on how many I fire up on the Ryzen 9). Settings MAKEFLAGS<br>
will hide NUMJOBS and is not appropriate since it obscures what was<br>
used. My VMs may not have the expected cores. It's better to have this<br>
available to explicitly set in the script as needed. Having<br>
NUMJOBS=${NUMJOBS:-1} as the default provides a suitable fallback.<br>
</blockquote></div><div class="gmail_quote"><br></div><div class="gmail_quote"><div style="font-size:x-small" class="gmail_default">like netrixtrardis wrote you can use a dynamic setting also for MAKEFLAGS: on my systems I have</div><div style="font-size:x-small" class="gmail_default"><br></div><div style="font-size:x-small" class="gmail_default">export MAKEFLAGS=${MAKEFLAGS:--j$(expr $(nproc) + 1)}</div><div style="font-size:x-small" class="gmail_default"><br></div><div style="font-size:x-small" class="gmail_default">this way you can use it on every machine regardless of their resources.<br></div></div><div class="gmail_quote"><div style="font-size:x-small" class="gmail_default"><div dir="ltr" class="gmail_attr"><span class="gmail_default" style="font-size:x-small"></span>Il giorno dom 3 apr 2022 alle ore 21:19 Ozan Türkyılmaz <<a href="mailto:ozan.turkyilmaz@gmail.com">ozan.turkyilmaz@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Don't do that. MAKEFLAGS is for passing command line arguments to<br>
submake processes [1]. I dont know if MAKEFLAGS="-j2" sh configure<br>
would do any problem or even make would get it. <br>
<br>
Regards,<br>
Ozan<br>
<br>
[1] There's some long talk abut it<br>
here:<a href="https://www.gnu.org/software/make/manual/html_node/Options_002fRecursion.html" rel="noreferrer" target="_blank">https://www.gnu.org/software/make/manual/html_node/Options_002fRecursion.html</a><br>
Also here: <a href="https://stackoverflow.com/a/19622824/7247759" rel="noreferrer" target="_blank">https://stackoverflow.com/a/19622824/7247759</a><br>
</blockquote><div><br></div><div style="font-size:x-small" class="gmail_default">Hi Ozan,</div><div style="font-size:x-small" class="gmail_default"><br></div><div style="font-size:x-small" class="gmail_default">the
first link you cite contains a couple of paragraphs that say that is
perfectly legit to use MAKEFLAGS to set parallel make jobs, the second
discussion on stackoverflow is only about the opportunity to set MAKEFLAGS inside a
Makefile.</div><div style="font-size:x-small" class="gmail_default"><br></div><div style="font-size:x-small" class="gmail_default">Matteo<br></div></div><br></div></div>