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: Cross-compiling GDB/GDBSERVER


On Tue, Jan 16, 2007 at 10:15:27AM +0200, Itzhak Ben-Akiva wrote:
> However, when I try to connect to the gdbserver, I get the message I
> post below. gdb is trying to find the libraries in the wrong places
> instead of the right one, i.e., the toolchain build directory. What am
> I missing in the compilation? Should I set CFLAGS and LD_FLAGS to the
> path of the toolchain build directory?

You need to either use --with-sysroot when building gdb, set
solib-absolute-prefix, or "set sysroot" if you're using GDB HEAD.
I added a section about this common pitfall to the manual a few weeks
ago.

-- 
Daniel Jacobowitz
CodeSourcery


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