Re: Cross Compilation : GCC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux