Re: gdbserver - manually modify Makefile
Orlando Arias <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <[email protected]> |
Greetings, I believe this is happening because you need to supply a --target parameter to gdbserver as well. ./configure --host=powerpc-buildroot-linux-gnu \ --target=powerpc-buildroot-linux-gnu \ --disable-werror Cheers, Orlando. On 08/13/2015 04:50 PM, Ran Shalit wrote: > Hello, > > I've cross compile gdbserver according to wiki in: > https://sourceware.org/gdb/wiki/BuildingCrossGDBandGDBserver > ubuntu@ubuntu-laptop:~/gdb-7.9.1/gdb/gdbserver$ sudo ./configure > --host=powerpc-buildroot-linux-gnu --disable-werror > > But on doing : > make > I've noticed that it uses the host gcc instead of the cross-compiler gcc. > Only after manually modifying the Makefie with > CC = powerpc-buildroot-linux-gnu-gcc > instead of > CC = gcc > It was cross compiling as expected. > > Can anyone help me understand what was wrong doing in the above steps? > > Since this didn't work as expected I'm afraid that maybe the gdb as I > compiled might also required some manually modifications which I am > not aware of. > These are the steps for gdb build: > ubuntu@ubuntu-laptop:~/gdb-7.9.1/$ sudo ./configure > --target=powerpc-buildroot-linux-gnu --disable-werror > > Thank you for your assistance, > Ran >
signature.asc
(application/pgp-signature, 819 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJVzQPOAAoJEKwbU4ENrwN1WicP/jO8jRrvYaMAPP8fpHao4Y+7 TJzb5V4+eqrdvrkpu5LjPtOOo64cRaAE9k4kNmgE8PFSvbbfOC3C4gE6R8mu6nvJ lmY1OrOAii71YcFv6FWVemxlFUXgKkw920LBkudGU9/KB9H7VpLTw14zBHQ7e6NU kA8B+bztJoA7di2seIidq4TMrzg/WFdBjPPPTU+0MPLSXz6fyTRLzyMfHr87F70p Kwmt/vpP1P+IxhDX0REUvNFIaKhfrPbSew2PTN0vqFnzeDG0KZYqeZDIesexC1xf WP1GODKS81596ILtoG1I5ssaSuq6mBu+xUHNQoPE0Ct71zAD75yThJYzkKfKOVn+ KbixBF86qo2ei8f/FmiZlohM98sz5/SaEmrD3lkTTf+W84RyXA53TL0N0M/Rg/qe VkSPhPsf58ndteRcPwJVcJuVL8+fAWpBo0DRlheJWMkveL6ZNsgU3NqisXHTi79g mRxmearkrNTvEEDNqy5Z6DGeq84T7omzBDRoi0W4Z2zsVJvDUvtmkYMexgw+8pcw ynyHSJRNqqd5ZtsYxHD21RBrhzwzTSYzI/ZoXy3oC9QKJZYpll53Qq/+YE2R2lLv vnV+7rIo72ujuK90Mkxuvyo8P7f3ovFoNfAtll+jzww7ThAZXZ/8C9sNm1FxBd15 WZ66OohVFgPmqyZmIiAv =A77g -----END PGP SIGNATURE-----