This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Cross Compilation : GCC


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]