gdbserver - manually modify Makefile

Ran Shalit <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <CAJ2oMh+5j+Rk7s0uH=Og7jaDmtrAQp2UDCdaM4rMhQe3L5Dt5A@mail.gmail.com>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.