Fix GDB BFD test linking
PATCH 1/1 Fix GDB BFD test linking
When compiling GDB for target (in my case i386) it links wrong BFD library from host OS. This prevents GDB from compiling support for ELF and thus GDB is unusable on target.
More about this issue was already posted at:
http://lists.uclibc.org/pipermail/buildroot/2009-March/026585.html
Fix this issue by forcing ELF support.
---
toolchain/gdb/gdb.mk | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
toolchain/gdb/gdb.mk +2 -0
@@ -93,6 +93,8 @@ endif touch $@ $(GDB_TARGET_DIR)/gdb/gdb: $(GDB_TARGET_DIR)/.configured + # force ELF support since it fails due to BFD linking problems + gdb_cv_var_elf=yes \ $(MAKE) CC=$(TARGET_CC) MT_CFLAGS="$(TARGET_CFLAGS)" \ -C $(GDB_TARGET_DIR) $(STRIPCMD) $(GDB_TARGET_DIR)/gdb/gdb
PATCH 1/1 Fix GDB BFD test linking
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Paulius" == Paulius Zaleckas <[email protected]> writes:
Paulius> When compiling GDB for target (in my case i386) it links Paulius> wrong BFD library from host OS. This prevents GDB from compiling Paulius> support for ELF and thus GDB is unusable on target.
Paulius> More about this issue was already posted at:
Paulius> http://lists.uclibc.org/pipermail/buildroot/2009-March/026585.html
Paulius> Fix this issue by forcing ELF support.
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard