This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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: sparc-sun-solaris support?


On Thu, 2005-10-06 at 11:34 +0200, Thomas Niederreiter wrote:
> Hello all,
> 
> I am just started to look at cross compling and my tests so
> far were not so lucky.
> 
> I need to be able to compile some code for sparc-solaris2.8 and
> was trying to utilize crossgcc.
> 
> I am here on a linux i386 machine and used crosstools-0.38.
> 
> crosstools seems only to be aimed to build linux software - is solaris
> supported at all?
No. 

> I am on a lost cause?
Crosstools is not what you need.

You will want to build a traditional cross gcc against your Solaris's
headers and libraries. Nowadays, a sys-rooted built probably is the most
simple approach.

It basically means:
1. Copy the target's /usr/include and /usr/lib to a location on your
linux machine (Or nfs mount a solaris machine's '/' under linux) and
then
2. Build and install binutils
configure --target=sparc-sun-solaris2.8 --prefix=<somewhere>
make install
3. Build and install GCC
export PATH=<somewhere>/bin
configure --target=sparc-sun-solaris2.8 --prefix=<somewhere> \
--sys-root=<solaris root> [more options]
make install


>  Do I need some other tools? Any one has an idea
> if its possible to build binaries for solaris on a linux machine?
Yes, not for solaris2.8 but for solaris2.7, and not sys-rooted ...

Ralf



------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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