This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Cross Compilation : GCC
- From: Brian Dessent <brian at dessent dot net>
- To: Farid Izem <farid dot izem at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Fri, 13 Apr 2007 16:53:34 -0700
- Subject: Re: Cross Compilation : GCC
- References: <8f2acb460704131601wd77a9c0n5e18e25670c10f21@mail.gmail.com>
- Reply-to: gcc-help at gcc dot gnu dot org
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