This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Cross-Compiling


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]