diff options
author | Andreas Tobler <andreast@fgznet.ch> | 2014-05-19 08:49:55 +0200 |
---|---|---|
committer | Andreas Tobler <andreast@fgznet.ch> | 2014-05-19 08:49:55 +0200 |
commit | fb2c6e43b8699da2057e9e33fda09007f112393a (patch) | |
tree | 1611dadf041c84e5f59a95b0c1aee7e80efc33f5 /ld/testsuite/ld-bootstrap | |
parent | f0d7b6ded54d09fa53b2cb54486489e6ccb34614 (diff) | |
download | gdb-fb2c6e43b8699da2057e9e33fda09007f112393a.zip gdb-fb2c6e43b8699da2057e9e33fda09007f112393a.tar.gz gdb-fb2c6e43b8699da2057e9e33fda09007f112393a.tar.bz2 |
Don't link FreeBSD tests with -ldl.
* ld-elf/shared.exp: Introduce the extralibs variable to control
the libraries to be linked. Don't link -ldl on *-*-freebsd*.
* ld-bootstrap/bootstrap.exp: Do not add -ldl to the extralibs on
*-*-freebsd*.
Diffstat (limited to 'ld/testsuite/ld-bootstrap')
-rw-r--r-- | ld/testsuite/ld-bootstrap/bootstrap.exp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ld/testsuite/ld-bootstrap/bootstrap.exp b/ld/testsuite/ld-bootstrap/bootstrap.exp index 27eb5d0..bbd4fd8 100644 --- a/ld/testsuite/ld-bootstrap/bootstrap.exp +++ b/ld/testsuite/ld-bootstrap/bootstrap.exp @@ -122,7 +122,9 @@ foreach flags $test_flags { # Plugin support requires linking with libdl. if { $plugins == "yes" } { - set extralibs "$extralibs -ldl" + if { ![istarget "*-*-freebsd*"]} { + set extralibs "$extralibs -ldl" + } } # On Irix 5, linking with --static only works if all the files are |