Really cross compiling gdb.

Simon Richter Simon.Richter@picotux.com
Wed Jan 11 08:35:00 GMT 2006


Hello,

James Steward wrote:

> This development board has heaps of RAM and CF disk space so I 
> thought about compiling gdb to run on the development platform but 
> alas with the --host=arm-xscale-linux-gnu and 
> --target=arm-xscale-linux-gnu and the readline workaround the gdb
> application is still a i386 executable (the build machine).

Setting both host and target should usually work, however IIRC there are 
a few broken configure scripts out there that set build=host if only 
host is given, later on determine that build==host, so it's obviously a 
native build and no cross compiler prefix is needed, so the host gcc is 
used.

Setting "--build=`./config.guess`" or something similar worked for us, 
at least. :-)

    Simon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 307 bytes
Desc: OpenPGP digital signature
URL: <http://sourceware.org/pipermail/gdb/attachments/20060111/dd313ab8/attachment.sig>


More information about the Gdb mailing list