Date: Tue, 16 Sep 2008 08:05:38 +0200 From: John Hay <jhay@meraka.org.za> To: "M. Warner Losh" <imp@bsdimp.com> Cc: arch@freebsd.org, julian@elischer.org Subject: Re: the more build knobs bikeshed Message-ID: <20080916060537.GA40711@zibbi.meraka.csir.co.za> In-Reply-To: <20080915.235522.-169059506.imp@bsdimp.com> References: <48CF1979.90507@errno.com> <48CF2975.3010908@elischer.org> <20080915.235522.-169059506.imp@bsdimp.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Sep 15, 2008 at 11:55:22PM -0600, M. Warner Losh wrote: > In message: <48CF2975.3010908@elischer.org> > Julian Elischer <julian@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@meraka.csir.co.za / jhay@FreeBSD.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080916060537.GA40711>