*BSD News Article 6218


Return to BSD News archive

Path: sserve!manuel.anu.edu.au!munnari.oz.au!sgiblab!darwin.sura.net!haven.umd.edu!uunet!mcsun!uknet!edcastle!aiai!richard
From: richard@aiai.ed.ac.uk (Richard Tobin)
Newsgroups: comp.unix.bsd
Subject: Re: Sun/386BSD Cross Compiler?
Message-ID: <7636@skye.ed.ac.uk>
Date: 7 Oct 92 11:43:47 GMT
References: <1992Oct5.204631.8172@tinman.mke.ab.com>
Sender: news@aiai.ed.ac.uk
Organization: AIAI, University of Edinburgh, Scotland
Lines: 22

In article <1992Oct5.204631.8172@tinman.mke.ab.com> tdphette@mke.ab.com (Thad Phetteplace x4461) writes:
>I've been thinking it would be really handy if I could use one of my
>SPARCstations to compile 386BSD code (in particular X386).

Cross-compiling isn't too difficult a problem - gcc2 can be configured
as one.  I believe I sent out some patches to BSD's ld to use it as a
cross-linker (it doesn't handle byte-order differences correctly)
about 6 months ago, but I no can no longer find them.

However, cross-building X looks rather tricky, due to the complicated
configuration process.  For example, it builds and then runs imake 
so you have to arrange for that to be compiled for the host machine,
rather than the target.

If your problem is disk space, you might find it easier to put your
386BSD machine on the net and nfs-mount a filesystem from the Sun.

-- Richard
-- 
Richard Tobin,
AI Applications Institute,                                R.Tobin@ed.ac.uk
Edinburgh University.