aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-bootstrap/bootstrap.exp
diff options
context:
space:
mode:
authorAndreas Tobler <andreast@fgznet.ch>2014-05-19 08:49:55 +0200
committerAndreas Tobler <andreast@fgznet.ch>2014-05-19 08:49:55 +0200
commitfb2c6e43b8699da2057e9e33fda09007f112393a (patch)
tree1611dadf041c84e5f59a95b0c1aee7e80efc33f5 /ld/testsuite/ld-bootstrap/bootstrap.exp
parentf0d7b6ded54d09fa53b2cb54486489e6ccb34614 (diff)
downloadbinutils-fb2c6e43b8699da2057e9e33fda09007f112393a.zip
binutils-fb2c6e43b8699da2057e9e33fda09007f112393a.tar.gz
binutils-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/bootstrap.exp')
-rw-r--r--ld/testsuite/ld-bootstrap/bootstrap.exp4
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