Cross Compilation : GCC

Brian Dessent brian@dessent.net
Fri Apr 13 23:53:00 GMT 2007


Farid Izem wrote:

> I have a Linux platform based on Linux Redhat WS 4.0
> I d'like to build from this platform gcc for Solaris 8, 9 and 10.
> How do i acquieve this step ?
> 
> Do i need special pre requisites in order to do that ?
> 
> Will the following line enought for doing it :
> 
> ../configure/gcc-4.1.2/configure --disable-nls
> --target=sparc-sun-solaris-2.8 --prefix=/var/tmp will work ?
> 
> Do i need additional steps ?

That alone will likely not work.  gcc is just the compiler, it does not
include the C library.  In order to build a working cross-compiler you
first need C headers and libraries for the target, and you need to
instruct the configure script where to find them with --with-headers and
--with-libs or alternatively --with-sysroot.

Brian



More information about the Gcc-help mailing list