Cross-Compiling

Ian Lance Taylor ian@wasabisystems.com
Tue Apr 27 13:32:00 GMT 2004


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



More information about the Gcc-help mailing list