This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] LD testsuite ld-bootstrap/bootstrap.exp


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]