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

* lib/gdb.exp (gdb_compile): Set rpath and remove -ldl from the
	list of compilation switches for <*-*-freebsd*>.
This commit is contained in:
Andreas Tobler 2011-09-22 04:58:22 +00:00
parent 4b51d87b48
commit b2a6bdebec
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2011-09-22 Andreas Tobler <andreast@fgznet.ch>
* lib/gdb.exp (gdb_compile): Set rpath and remove -ldl from the
list of compilation switches for <*-*-freebsd*>.
2011-09-19 Stan Shebs <stan@codesourcery.com>
* gdb.trace/tspeed.exp: New file.

View file

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