From: Paulius Zaleckas <paulius.zaleckas@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] Fix GDB BFD test linking
Date: Mon, 22 Feb 2010 23:49:51 +0200 [thread overview]
Message-ID: <20100222214951.8779.6936.stgit@localhost.localdomain> (raw)
When compiling GDB for the same architecture as host it links
wrong BFD library from host OS. This prevents GDB from compiling
support for ELF and thus GDB unusable on target.
Fix this by moving BFD and libiberty directories before CFLAGS, since
"wrong" path comes from CFLAGS.
More about this issue was already posted at:
http://lists.uclibc.org/pipermail/buildroot/2009-March/026585.html
Signed-off-by: Paulius Zaleckas <paulius.zaleckas@gmail.com>
---
.../6.8/700-fix-linking-directory-priority.patch | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
create mode 100644 toolchain/gdb/6.8/700-fix-linking-directory-priority.patch
diff --git a/toolchain/gdb/6.8/700-fix-linking-directory-priority.patch b/toolchain/gdb/6.8/700-fix-linking-directory-priority.patch
new file mode 100644
index 0000000..5dff5aa
--- /dev/null
+++ b/toolchain/gdb/6.8/700-fix-linking-directory-priority.patch
@@ -0,0 +1,13 @@
+--- gdb-6.8/gdb/configure.orig 2008-01-13 14:23:04.000000000 +0200
++++ gdb-6.8/gdb/configure 2009-12-06 18:32:27.065376339 +0200
+@@ -22994,8 +22994,8 @@ esac
+ OLD_CFLAGS=$CFLAGS
+ OLD_LDFLAGS=$LDFLAGS
+ OLD_LIBS=$LIBS
+-CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
+-LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
++CFLAGS="-L../bfd -L../libiberty $CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
++LDFLAGS="$LDFLAGS"
+ intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
+ LIBS="$LIBS -lbfd -liberty $intl"
+ echo "$as_me:$LINENO: checking for ELF support in BFD" >&5
next reply other threads:[~2010-02-22 21:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-22 21:49 Paulius Zaleckas [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-04-29 19:19 [Buildroot] [PATCH] Fix GDB BFD test linking Paulius Zaleckas
2010-05-01 20:54 ` Peter Korsgaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100222214951.8779.6936.stgit@localhost.localdomain \
--to=paulius.zaleckas@gmail.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox