cross platform building under emulation

Kris Kennaway kris at obsecurity.org
Tue Oct 18 11:13:55 PDT 2005


On Fri, Oct 14, 2005 at 07:27:00PM -0700, Doug Ambrisko wrote:
> Dan Langille writes:
> | Daris has got me thinking about unpacking 4.9-release/bin into a 
> | directory, and then doing a chroot.
> 
> That sort-of works.  I've done some setups for companies and get
> iteratively better solutions.  I copy over some host bins & libs
> into special directories so mount, ps etc can be run from inside.
> I also have mods to libc so that uname & getosreldate so it can
> be set via env. variables so pkg_add, autoconf etc picks up the
> right stuff.  Now this is a little trickier for old version of
> libc that I haven't modified locally yet so I build a stub lib.
> of these in the chroot then load this then LD_PRELOAD.  If you don't
> then some things get messed up.
> 
> This lets me build on a FreeBSD 6.X/amd64 host for FreeBSD 4.X/386, 
> FreeBSD amd64 etc.  I've also at times loaded in the Linux tools and
> made that work so I could build Linux bins in chroots.
> 
> I hope to commit my changes to getosreldate(3) and uname(3).
> This mirrors the env. variables in /usr/bin/uname.

I'd find this very useful too (and will start using your patch),
thanks!

Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-emulation/attachments/20051018/b7c602b5/attachment.bin


More information about the freebsd-emulation mailing list