<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<font face="DejaVu Sans">Never had any issue using the -j flag as...<br>
<br>
CFLAGS="-O3 -fPIC -march=native -pipe" ./configure --prefix=/usr
&& make -j{number of cores + 1}<br>
<br>
Cheers,<br>
Alex<br>
<br>
</font><br>
<div class="moz-cite-prefix">On 1/30/19 7:34 AM, Gerhard Lazu wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CALdE116iSMibsnZsi0QcwgWH7fRPHYJVcHQqd-vg1YZOxtaSLA@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div dir="ltr">Yes, the -j flag is guaranteed to work as
expected when building Erlang from source. If still in doubt,
can you think of a series of checks that you could run
post-build to ensure that the resulting artefact behaves
correctly?</div>
<div dir="ltr"><br>
</div>
<div dir="ltr">We are using -j when compiling Erlang in the
RabbitMQ Docker image: <a
href="https://github.com/docker-library/rabbitmq/blob/8a623bb9420b8bfb1cbad2467abb48db26e7ddbc/3.7/ubuntu/Dockerfile#L138"
moz-do-not-send="true">https://github.com/docker-library/rabbitmq/blob/8a623bb9420b8bfb1cbad2467abb48db26e7ddbc/3.7/ubuntu/Dockerfile#L138</a></div>
<div dir="ltr"><br>
</div>
<div>As for checks, we verify that Erlang/OTP crypto & ssl
were compiled against OpenSSL correctly: <a
href="https://github.com/docker-library/rabbitmq/blob/8a623bb9420b8bfb1cbad2467abb48db26e7ddbc/3.7/ubuntu/Dockerfile#L159"
moz-do-not-send="true">https://github.com/docker-library/rabbitmq/blob/8a623bb9420b8bfb1cbad2467abb48db26e7ddbc/3.7/ubuntu/Dockerfile#L159</a></div>
<div><br>
</div>
<div>The same -j flag is used in the Erlang Docker image: <a
href="https://github.com/erlang/docker-erlang-otp/blob/a35e84764af1391f174905c7d18db3c1b7c629e6/21/Dockerfile#L29"
moz-do-not-send="true">https://github.com/erlang/docker-erlang-otp/blob/a35e84764af1391f174905c7d18db3c1b7c629e6/21/Dockerfile#L29</a></div>
<div><br>
</div>
<div>Hope this helps, Gerhard.</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Wed, Jan 30, 2019 at 11:19
AM Roger Lipscombe <<a href="mailto:roger@differentpla.net"
moz-do-not-send="true">roger@differentpla.net</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I'm
building Erlang/OTP (using kerl, but I don't think that's<br>
relevant) and it's taking forever. Can I use MAKEFLAGS=-j8 to
make it<br>
quicker? Is this supported?<br>
<br>
I mean, sure, it *appears* to be working (though something's
using<br>
more than 8 cores, somehow, and my music playback's getting
choppy).<br>
But is it *guaranteed* to work?<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank"
moz-do-not-send="true">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions"
rel="noreferrer" target="_blank" moz-do-not-send="true">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
erlang-questions mailing list
<a class="moz-txt-link-abbreviated" href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a>
<a class="moz-txt-link-freetext" href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a>
</pre>
</blockquote>
</body>
</html>