From b2a6bdebeceeec07795812a2c96f655bbc0313f5 Mon Sep 17 00:00:00 2001 From: Andreas Tobler Date: Thu, 22 Sep 2011 04:58:22 +0000 Subject: [PATCH] 2011-09-22 Andreas Tobler * lib/gdb.exp (gdb_compile): Set rpath and remove -ldl from the list of compilation switches for <*-*-freebsd*>. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/lib/gdb.exp | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 38e692cc458..d426e4230f2 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2011-09-22 Andreas Tobler + + * lib/gdb.exp (gdb_compile): Set rpath and remove -ldl from the + list of compilation switches for <*-*-freebsd*>. + 2011-09-19 Stan Shebs * gdb.trace/tspeed.exp: New file. diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index 1476c191651..151d7e2d9c5 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -2233,7 +2233,7 @@ proc gdb_compile {source dest type options} { || [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 } { -- 2.30.2