This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Cross-Compiling
- From: Ian Lance Taylor <ian at wasabisystems dot com>
- To: Michael Becker <mb at apissoft dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: 27 Apr 2004 09:32:20 -0400
- Subject: Re: Cross-Compiling
- References: <408E2841.5010909@apissoft.com>
Michael Becker <mb@apissoft.com> writes:
> Does anyone know how to build a Cross g++ for Solaris hosted on Linux ?
> Need to know which headers and libs to be copied and how to configure.
In the general case, you need to copy everything under /usr/include
and everything in /lib. Then run configure using --with-headers and
--with-libs set to the directories where those files can be found.
GCCSRCDIR/configure --target=sparc-sun-solaris2 --with-headers=DIR --with-libs=DIR
Ian