This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] fix ldl testcases on FreeBSD


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]