<div>First of all there is a great article from linker guru Rod Evans about static linking : <a href="https://blogs.oracle.com/rie/entry/static_linking_where_did_it">https://blogs.oracle.com/rie/entry/static_linking_where_did_it</a></div>
<div>I have created a package with dynamically linked executables. As it doesn't depend from any external packages ( libs ) it can be easily installed at any Solaris system. I have installed it at hundreds of servers ( thank you Matt for a great piece of code! ) with out of any problems. I will be happy to help you, if you will have any problems.</div>
<div><br></div><div>Wbr,</div><div>Antony Pavlenko</div><div><br></div><div class="gmail_quote">On Sun, Nov 6, 2011 at 8:44 PM, phocean <span dir="ltr"><<a href="mailto:0x90@phocean.net">0x90@phocean.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Le 06/11/2011 14:27, Laurent Bercot a écrit :<br>
<div><div class="h5">>> $ make PROGRAMS="scp" STATIC=1<br>
>> gcc -L/usr/local/lib -R/usr/local/lib -static -o scp scp.o<br>
>> progressmeter.o atomicio.o scpmisc.o compat.o<br>
>> ld: fatal: library -lc: not found<br>
><br>
> As Matt said, you cannot make static programs on Solaris.<br>
> Solaris does not ship with a libc.a, only a libc.so.<br>
><br>
> This would be an excellent reason to change operating systems and<br>
> use something less braindead and obsolete.<br>
><br>
> But if you're hell-bent on using Solaris, just remove the STATIC=1<br>
> part of your command line and dropbear should compile without trouble,<br>
> it will simply use dynamic libraries.<br>
><br>
<br>
</div></div>If only I could... But believe me, you can't change an industrial device<br>
easily !<br>
<br>
The reason why I want it to build it statically, is that I wanted it to<br>
run on several versions of Solaris, without messing up with library<br>
issues (though I can't compile anything directly on such devices).<br>
<font color="#888888"><br>
--<br>
phocean<br>
</font></blockquote></div><br>