TR: Pb while building gcc-2.95.3 cross compiler for powerpc

Jim Wilson wilson@specifixinc.com
Thu Nov 20 01:10:00 GMT 2003


J.N. Helal wrote:
> 4) I use the gcc configure command as follow:
> ./configure --target=powerpc-linux --prefix=/usr/local --with-gnu-as --with-
> gnu-ld
> --with-header=/usr/local/powerpc-linux/include --with-header=/usr/local/powe
> rpc-linux/sys-include --enable-threads=posix

You probably want to use a --with-libs= option to tell gcc where the 
target libraries are.

It is --with-headers= not --with-header.  When you use --with-headers=, 
configure will copy the header files into $prefix/$target/sys-include. 
There is no need for you to put them there yourself.  I don't think 
using two --with-headers= options will work right.  You just want one 
for the target's /usr/include directory.  If you really need more than 
one, then --with-headers= won't work for you.

Newer gcc's have a --with-sysroot configure option that is easier to 
use.  This will appear in gcc-3.3.3.
-- 
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com



More information about the Gcc-bugs mailing list