projects
/
platform
/
upstream
/
binutils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
gdb/testsuite/gdb.threads: Ensure TLS tests link against pthreads.
[platform/upstream/binutils.git]
/
gdb
/
testsuite
/
gdb.threads
/
tls-nodebug.c
diff --git
a/gdb/testsuite/gdb.threads/tls-nodebug.c
b/gdb/testsuite/gdb.threads/tls-nodebug.c
index
73d96f0
..
d3b31b7
100644
(file)
--- a/
gdb/testsuite/gdb.threads/tls-nodebug.c
+++ b/
gdb/testsuite/gdb.threads/tls-nodebug.c
@@
-6,5
+6,7
@@
__thread int thread_local = 42;
int main(void)
{
+ /* Ensure we link against pthreads even with --as-needed. */
+ pthread_testcancel();
return 0;
}