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

* Re: [patch] fix ldl testcases on FreeBSD
  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
  0 siblings, 1 reply; 4+ messages in thread
From: Joel Brobecker @ 2011-09-21 19:04 UTC (permalink / raw)
  To: Andreas Tobler; +Cc: gdb-patches

> 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?

The patch looks OK to me, but the description and ChangeLogs are
misleading. What the patch does is both setting the rpath *and*
removing -ldl from the list of compilation switches.

> 2011-09-21  Andreas Tobler  <andreast@fgznet.ch>
> 
> 	* lib/gdb.exp (gdb_compile): Set rpath for <*-*-freebsd*>.

-- 
Joel


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

* Re: [patch] fix ldl testcases on FreeBSD
  2011-09-21 19:04 ` Joel Brobecker
@ 2011-09-21 21:12   ` Andreas Tobler
  2011-09-22  1:26     ` Joel Brobecker
  0 siblings, 1 reply; 4+ messages in thread
From: Andreas Tobler @ 2011-09-21 21:12 UTC (permalink / raw)
  To: Joel Brobecker; +Cc: gdb-patches

On 21.09.11 20:14, Joel Brobecker wrote:
>> 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?
>
> The patch looks OK to me, but the description and ChangeLogs are
> misleading. What the patch does is both setting the rpath *and*
> removing -ldl from the list of compilation switches.

You're right. Like this?

2011-09-21  Andreas Tobler  <andreast@fgznet.ch>

	* lib/gdb.exp (gdb_compile): Set rpath and remove -ldl from the
	list of compilation switches for <*-*-freebsd*>.

Thanks,
Andreas


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

* Re: [patch] fix ldl testcases on FreeBSD
  2011-09-21 21:12   ` Andreas Tobler
@ 2011-09-22  1:26     ` Joel Brobecker
  0 siblings, 0 replies; 4+ messages in thread
From: Joel Brobecker @ 2011-09-22  1:26 UTC (permalink / raw)
  To: Andreas Tobler; +Cc: gdb-patches

> 2011-09-21  Andreas Tobler  <andreast@fgznet.ch>
> 
> 	* lib/gdb.exp (gdb_compile): Set rpath and remove -ldl from the
> 	list of compilation switches for <*-*-freebsd*>.
[...]
> Like this?

Yep!  Thank you :)

-- 
Joel


^ 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