the more build knobs bikeshed

John Hay jhay at meraka.org.za
Tue Sep 16 06:05:41 UTC 2008


On Mon, Sep 15, 2008 at 11:55:22PM -0600, M. Warner Losh wrote:
> In message: <48CF2975.3010908 at elischer.org>
>             Julian Elischer <julian at elischer.org> writes:
> : > With these changes I can build a nanobsd image for x86 or arm that is 
> : > <1/2 the size you can get otherwise (using just the standard knobs).  If 
> : > you do not use the knobs you should get exactly what you're used to 
> : > getting.
> : 
> : tinybsd gets its apps together and then uses ldd on each to get the 
> : minimum set of libraries as well.
> : (though that doesn't help with programs that dlopen a bunch of stuff
> : such as natd which dlopens all teh libalias*.so libs).
> 
> And it doesn't work with cross building because of its use of LDD.  It
> needs to use the NEEDED lines in objdump to get this information.

I have been using this in a script on an i386 box to build small i386 and
arm distros:

llst=`readelf --dynamic ${sdir}/${f} 2> /dev/null | awk '/Shared library/ { print $5 }' | sed -E -e 's/\[|\]//g'` 

John
-- 
John Hay -- John.Hay at meraka.csir.co.za / jhay at FreeBSD.org


More information about the freebsd-arch mailing list