[Buildroot] [PATCH] The external toolchain can be used statically.

Pkun serj.kalichev at gmail.com
Wed Dec 8 11:26:52 UTC 2010


What about checkbox "Don't copy toolchain libraries to the target dir" that
depends on PREFERRED_STATIC. So users who use dynamic linking don't see this
checkbox at all. But users who use static linking can manually choose to
copy or don't copy shared libraries. It's usefull to create initramfs images
at least. It's unlikely that someone make initramfs with complex soft.
Usually it will be a static busybox.

2010/12/8 Mike Frysinger <vapier at gentoo.org>

> On Wednesday, December 08, 2010 05:40:17 Pkun wrote:
> > Ok.
>
> please dont top post
>
> > May be the right way is to copy only
> > "/usr/lib/libnss*.so*" and
> > "/usr/lib/gconv"
> > when the static is preferred?
>
> no, because that wont pull in the libraries that those libraries need.
>  like
> libc.so, libresolv.so, ld-linux.so, ......  at which point you might as
> well
> leave them alone.
>
> > Or make the shared libraries copying optional in Config.in?
> > Or make checkboxes especially for libnss and conv libraries to force
> > copying?
>
> i think the only safe way would be to let end users remove the files they
> know
> they wont need at runtime.
> -mike
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20101208/6595aa47/attachment-0002.html>


More information about the buildroot mailing list