<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'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'll run on Poky.<div><br></div><div>It'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 "--disable-static", 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"><<a href="mailto:raj.khem@gmail.com" target="_blank">raj.khem@gmail.com</a>></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, "ryan woodsmall" <<a href="mailto:rwoodsmall@gmail.com" target="_blank">rwoodsmall@gmail.com</a>> wrote:<br>
><br>
> Static libraries are mostly usable in very small embedded systems.<br>
> The addiiton of musl-libc support allows very small "single binary" systems,<br>
> and static linking allows no shared lib deps on these types of builds.<br>
><br>
> Signed-off-by: ryan woodsmall <<a href="mailto:rwoodsmall@gmail.com" target="_blank">rwoodsmall@gmail.com</a>><br>
> ---<br>
> meta/conf/distro/include/no-static-libs.inc | 4 ++--<br>
> 1 file changed, 2 insertions(+), 2 deletions(-)<br>
><br>
> diff --git a/meta/conf/distro/include/no-static-libs.inc b/meta/conf/distro/include/no-static-libs.inc<br>
> index 13a7918..83472d5 100644<br>
> --- a/meta/conf/distro/include/no-static-libs.inc<br>
> +++ b/meta/conf/distro/include/no-static-libs.inc<br>
> @@ -1,4 +1,4 @@<br>
> -DISABLE_STATIC = " --disable-static"<br>
> +DISABLE_STATIC ?= " --disable-static"<br>
></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="">> # qemu aborts on unrecognised option<br>
> DISABLE_STATIC_pn-qemu = ""<br>
> @@ -32,4 +32,4 @@ DISABLE_STATIC_pn-libusb1-native = ""<br>
><br>
> EXTRA_OECONF_append = "${DISABLE_STATIC}"<br>
><br>
> -EXTRA_OECMAKE_append_pn-libical = "-DSHARED_ONLY=True"<br>
> +EXTRA_OECMAKE_append_pn-libical ?= "-DSHARED_ONLY=True"<br>
> --<br>
> 2.6.4<br>
><br></span><span class="HOEnZb"><font color="#888888">
> --<br>
> _______________________________________________<br>
> Openembedded-core mailing list<br>
> <a href="mailto:Openembedded-core@lists.openembedded.org" target="_blank">Openembedded-core@lists.openembedded.org</a><br>
> <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>