]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* lib/gdb.exp (gdb_compile_pthreads): Handle case where
authorDoug Evans <dje@google.com>
Wed, 3 Mar 2010 22:19:05 +0000 (22:19 +0000)
committerDoug Evans <dje@google.com>
Wed, 3 Mar 2010 22:19:05 +0000 (22:19 +0000)
libc contains libpthread.

gdb/testsuite/ChangeLog
gdb/testsuite/lib/gdb.exp

index 963e679c3789c57ce123dd112405478ae46093a6..1cc2d2fd78fade525b1f75ab868c14f5ceaf169b 100644 (file)
@@ -1,5 +1,8 @@
 2010-03-03  Doug Evans  <dje@google.com>
 
+       * lib/gdb.exp (gdb_compile_pthreads): Handle case where
+       libc contains libpthread.
+
        * gdb.threads/linux-dp.c (shared_random): Call rand instead of rand_r.
        * gdb.threads/linux-dp.exp: Compile with gdb_compile_pthreads instead
        of gdb_compile.  Add another pattern to match android backtrace.
index 8c18f331e1622d0db8f5f41ce60ece9272feadae..fbe028548fb5d5305377482fecb0966c63b15892 100644 (file)
@@ -1929,7 +1929,7 @@ proc gdb_compile {source dest type options} {
 proc gdb_compile_pthreads {source dest type options} {
     set built_binfile 0
     set why_msg "unrecognized error"
-    foreach lib {-lpthreads -lpthread -lthread} {
+    foreach lib {-lpthreads -lpthread -lthread ""} {
         # This kind of wipes out whatever libs the caller may have
         # set.  Or maybe theirs will override ours.  How infelicitous.
         set options_with_lib [concat $options [list libs=$lib quiet]]