From ee39d53ce343c2d8e4603f40a9d3aaba6d5ef8ff Mon Sep 17 00:00:00 2001 From: Paulius Zaleckas Date: Thu, 29 Apr 2010 22:19:20 +0300 Subject: 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. Signed-off-by: Paulius Zaleckas Signed-off-by: Peter Korsgaard --- toolchain/gdb/gdb.mk | 2 ++ 1 file changed, 2 insertions(+) (limited to 'toolchain/gdb') diff --git a/toolchain/gdb/gdb.mk b/toolchain/gdb/gdb.mk index 5e91d981d..5725067c2 100644 --- a/toolchain/gdb/gdb.mk +++ b/toolchain/gdb/gdb.mk @@ -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 -- cgit v1.2.3