This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: cross compilation
- From: Kai Ruottu <karuottu at mbnet dot fi>
- To: Mangal Pandey <gcc_help at yahoo dot co dot in>
- Cc: gcc <gcc-help at gcc dot gnu dot org>
- Date: Tue, 26 Sep 2006 16:04:54 +0300
- Subject: Re: cross compilation
- References: <20060926113242.69202.qmail@web8408.mail.in.yahoo.com>
Mangal Pandey wrote:
I'm developing an application on RHEL AS4 and want to
generate code for Solaris 5.10. I'm using GCC 3.4.3.
What steps i need to follow to generate code for
Solaris 5.10.
1. Get the Solaris 10 $target C libraries into your $host,
install them where a crosscompiler should have the
$target stuff
2. Build Solaris10 $target binutils, installing them into
the same scheme with the $target libraries
3. Build the Solaris10 $target GCC, its build requires both
the $target binutils and the $target C libraries when
producing extra libraries (libiberty, libstdc++-v3,...) for
the $target. Then install your new GCC !
4. Try compiling and linking your 'hello.c' and 'hello.cpp'
and after these succeeding and working on the $target,
be happy !
The older GCC manuals, for instance the gcc-2.95.3 "Using
and Porting and its "Installing GNU CC / Building and
Installing a Cross-Compiler" are your friends!