This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] LD testsuite ld-bootstrap/bootstrap.exp
- From: Andreas Tobler <andreast-list at fgznet dot ch>
- To: binutils at sourceware dot org
- Date: Sun, 04 May 2014 22:58:50 +0200
- Subject: [PATCH] LD testsuite ld-bootstrap/bootstrap.exp
- Authentication-results: sourceware.org; auth=none
Hello all,
this patch excludes *-*-freebsd* from the targets which have to link
against -ldl, not needed.
Ok?
Thanks,
Andreas
2014-05-04 Andreas Tobler <andreast@fgznet.ch>
* ld-bootstrap/bootstrap.exp: Do not add -ldl to the extralibs on
*-*-freebsd*.
diff --git a/ld/testsuite/ld-bootstrap/bootstrap.exp
b/ld/testsuite/ld-bootstrap
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