Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Feb 1997 22:48:46 -0700
From:      Warner Losh <imp@village.org>
To:        Don Yuniskis <dgy@rtd.com>
Cc:        freebsd-hackers@freefall.freebsd.org (FreeBSD hackers)
Subject:   Re: GCC cross compiles 
Message-ID:  <E0vxRN8-0006t8-00@rover.village.org>
In-Reply-To: Your message of "Wed, 19 Feb 1997 18:00:40 MST." <199702200100.SAA10423@seagull.rtd.com> 
References:  <199702200100.SAA10423@seagull.rtd.com>  

next in thread | previous in thread | raw e-mail | index | archive | help
In message <199702200100.SAA10423@seagull.rtd.com> Don Yuniskis writes:
:     However, am I correct in assuming that one can safely build
: *cross* compilers under reasonably recent FBSD releases using
: the latest GCC sources (i.e. host=FBSD2.1R, target=68k)?
: Has anyone done this and had decent success?

I've done this with the raw gcc/binutils distribution, with the cygnus
release and the OpenBSD tree.  Forget it with the gcc/binutils in the
freebsd tree, they are intel only.  However, once you get the full
sources, it generally is as simple as doing ./configure
--target=mips-unknown-openbsd2.0 --host=i386-unknown-freebsd2.2
followed by a make.  You'll need to arrange for include files and
libraries, but that isn't too hard.

Check out http://www.village.org/villagers/imp/build.html for
something I wrote up a while ago on how to do this for Linux/MIPS.

Warner



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E0vxRN8-0006t8-00>