<div dir="ltr">The idea is to build an as-close-to-stock-as-possible Poky (or another) distro, but include support for static linking natively in the installed OS. Some of the bits I build/ship, including standalone static cross and native toolchains, target Poky as the stable reference source OS. The poky-tiny definition with musl exists, but doesn&#39;t quite cover what I need, and some externals are built outside of bitbake, the SDK and packaging system, so static compilation limits required libraries and gives me some confidence that I&#39;ll run on Poky.<div><br></div><div>It&#39;s not a big deal at all to do a custom Poky-based distro so I can head down that path, but thought this might be useful. The default remains sane, setting &quot;--disable-static&quot;, but provides a knob to turn if the old feature is needed. Apologies if I missed the point here!</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 5, 2016 at 11:09 PM, Khem Raj <span dir="ltr">&lt;<a href="mailto:raj.khem@gmail.com" target="_blank">raj.khem@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><p dir="ltr"><br>
On May 5, 2016 8:59 PM, &quot;ryan woodsmall&quot; &lt;<a href="mailto:rwoodsmall@gmail.com" target="_blank">rwoodsmall@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Static libraries are mostly usable in very small embedded systems.<br>
&gt; The addiiton of musl-libc support allows very small &quot;single binary&quot; systems,<br>
&gt; and static linking allows no shared lib deps on these types of builds.<br>
&gt;<br>
&gt; Signed-off-by: ryan woodsmall &lt;<a href="mailto:rwoodsmall@gmail.com" target="_blank">rwoodsmall@gmail.com</a>&gt;<br>
&gt; ---<br>
&gt;  meta/conf/distro/include/no-static-libs.inc | 4 ++--<br>
&gt;  1 file changed, 2 insertions(+), 2 deletions(-)<br>
&gt;<br>
&gt; diff --git a/meta/conf/distro/include/no-static-libs.inc b/meta/conf/distro/include/no-static-libs.inc<br>
&gt; index 13a7918..83472d5 100644<br>
&gt; --- a/meta/conf/distro/include/no-static-libs.inc<br>
&gt; +++ b/meta/conf/distro/include/no-static-libs.inc<br>
&gt; @@ -1,4 +1,4 @@<br>
&gt; -DISABLE_STATIC = &quot; --disable-static&quot;<br>
&gt; +DISABLE_STATIC ?= &quot; --disable-static&quot;<br>
&gt;</p>
</span><p dir="ltr">I think this defeats the essense of this inc file. Not including this file in your distro as a policy is what you want</p>
<p dir="ltr"><span class="">&gt;  # qemu aborts on unrecognised option<br>
&gt;  DISABLE_STATIC_pn-qemu = &quot;&quot;<br>
&gt; @@ -32,4 +32,4 @@ DISABLE_STATIC_pn-libusb1-native = &quot;&quot;<br>
&gt;<br>
&gt;  EXTRA_OECONF_append = &quot;${DISABLE_STATIC}&quot;<br>
&gt;<br>
&gt; -EXTRA_OECMAKE_append_pn-libical = &quot;-DSHARED_ONLY=True&quot;<br>
&gt; +EXTRA_OECMAKE_append_pn-libical ?= &quot;-DSHARED_ONLY=True&quot;<br>
&gt; --<br>
&gt; 2.6.4<br>
&gt;<br></span><span class="HOEnZb"><font color="#888888">
&gt; --<br>
&gt; _______________________________________________<br>
&gt; Openembedded-core mailing list<br>
&gt; <a href="mailto:Openembedded-core@lists.openembedded.org" target="_blank">Openembedded-core@lists.openembedded.org</a><br>
&gt; <a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" target="_blank">http://lists.openembedded.org/mailman/listinfo/openembedded-core</a><br>
</font></span></p>
</blockquote></div><br></div>