Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [patch] fix ldl testcases on FreeBSD
@ 2011-09-21 17:00 Andreas Tobler
  2011-09-21 19:04 ` Joel Brobecker
  0 siblings, 1 reply; 4+ messages in thread
From: Andreas Tobler @ 2011-09-21 17:00 UTC (permalink / raw)
  To: gdb-patches

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 } {


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-09-21 22:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-21 17:00 [patch] fix ldl testcases on FreeBSD Andreas Tobler
2011-09-21 19:04 ` Joel Brobecker
2011-09-21 21:12   ` Andreas Tobler
2011-09-22  1:26     ` Joel Brobecker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox