This is the mail archive of the gdb@sourceware.org mailing list for the GDB 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: Really cross compiling gdb.


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

Attachment: signature.asc
Description: OpenPGP digital signature


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