Cross Linux/x86 to Solaris2.10/x86-64 compiler build problem

Daniel Jacobowitz drow@false.org
Tue Mar 20 00:23:00 GMT 2007


On Mon, Mar 19, 2007 at 09:33:01PM +0000, Alex Bennee wrote:
> path=`pwd`
> crossrc="$path/.."
> host=i686-pc-gnu
> target=i686-sun-solaris2.10
> prefix=$crosssrc/build-install
> sysroot=$crosssrc/sysroot
> syslibs=$sysroot/usr/lib
> sysincludes=$sysroot/usr/include
> 
> ./configure -prefix=$prefix --target=$target --with-gnu-as --with-gnu-ld
> --with-libs=$syslibs --with-headers=$sysincludes --enable-languages=c,c
> ++ --with-cpu=opteron

I strongly recommend you use --with-sysroot instead of --with-libs /
--with-headers.  That should help.


-- 
Daniel Jacobowitz
CodeSourcery



More information about the Gcc-help mailing list