<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Not sure what you mean. Of course any C program can be compiled
statically. I am just looking for the right options. Are you
saying beam.smp can't or shouldn't because it's being launched as
part of "operation"? It shouldn't matter since beam.smp isn't a
library but an executable. And as far as a release goes it should
be launched once then be available to any tool or script through a
shell or network connection.</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 03/08/2020 01:14, Dmytro Lytovchenko
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAOUb9CG8e5UYXLNmHJAm8p7tg=Q6b+c7HjR_NiVLdV-SyqH0Rg@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div dir="ltr">
<div>Any C program can be compiled statically unless it relies
on some dynamic loading as part of its work.</div>
<div>The Problem is that <b>erl </b>and few other small tool
programs are launching `beam.smp` as a part of operation,
and compiling each of them statically will result in a pile
of multi-megabyte executables.<br>
</div>
<div><br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Mon, 3 Aug 2020 at 01:13,
Grzegorz Junka <<a href="mailto:list1@gjunka.com"
target="_blank" moz-do-not-send="true">list1@gjunka.com</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">Is it possible to compile
Erlang Beam statically so that when I am doing <br>
a release it doesn't require any dynamically loaded
libraries on the <br>
host to which the release is being deployed? I was trying
the various <br>
configure options but the compilation was failing (for
various reasons, <br>
mostly missing or conflicting function signatures). I could
try again <br>
and post exact errors but would prefer to start with a tried
and tested <br>
set of options.<br>
<br>
GrzegorzJ<br>
<br>
</blockquote>
</div>
</div>
</blockquote>
</body>
</html>