From: Andreas Tobler <andreast-list@fgznet.ch>
To: gdb-patches@sourceware.org
Subject: [patch] fix ldl testcases on FreeBSD
Date: Wed, 21 Sep 2011 17:00:00 -0000 [thread overview]
Message-ID: <4E7A172D.6040004@fgznet.ch> (raw)
Hi all,
the below patch makes the test cases work on *-*-freebsd* where we link
-ldl. Iow, like on openbsd, we do not add -ldl to the libs.
Is this ok for trunk?
Thanks,
Andreas
2011-09-21 Andreas Tobler <andreast@fgznet.ch>
* lib/gdb.exp (gdb_compile): Set rpath for <*-*-freebsd*>.
Index: testsuite/lib/gdb.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/lib/gdb.exp,v
retrieving revision 1.186
diff -u -r1.186 gdb.exp
--- testsuite/lib/gdb.exp 18 Sep 2011 02:36:27 -0000 1.186
+++ testsuite/lib/gdb.exp 21 Sep 2011 16:51:49 -0000
@@ -2233,7 +2233,7 @@
|| [istarget *-*-pe*]
|| [istarget hppa*-*-hpux*])} {
# Do not need anything.
- } elseif { [istarget *-*-openbsd*] } {
+ } elseif { [istarget *-*-freebsd*] || [istarget *-*-openbsd*] } {
lappend new_options "ldflags=-Wl,-rpath,${outdir}"
} elseif { [istarget arm*-*-symbianelf*] } {
if { $shlib_load } {
next reply other threads:[~2011-09-21 16:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-21 17:00 Andreas Tobler [this message]
2011-09-21 19:04 ` Joel Brobecker
2011-09-21 21:12 ` Andreas Tobler
2011-09-22 1:26 ` Joel Brobecker
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=4E7A172D.6040004@fgznet.ch \
--to=andreast-list@fgznet.ch \
--cc=gdb-patches@sourceware.org \
/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