summaryrefslogtreecommitdiff
path: root/modules/pthread-once-tests
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2019-12-21 13:36:03 +0100
committerBruno Haible <bruno@clisp.org>2019-12-21 13:43:31 +0100
commit478535b02e710391ed3fe9e3381c4a29b397228d (patch)
treef846f170ecc3b8d52e2903af799a42c83176063a /modules/pthread-once-tests
parent44524a484acfc9a27a4ac6f3ad9fba7955677711 (diff)
downloadgnulib-478535b02e710391ed3fe9e3381c4a29b397228d.tar.gz
sched_yield: Don't depend on threadlib and yield.
* m4/threadlib.m4 (gl_PTHREADLIB): Document that it sets LIB_SCHED_YIELD. (gl_PTHREADLIB_BODY): Set LIB_SCHED_YIELD (code moved here from m4/yield.m4). * m4/sched_yield.m4 (gl_FUNC_SCHED_YIELD): Require gl_PTHREADLIB, not gl_THREADLIB and gl_YIELD. * m4/yield.m4 (gl_YIELD): Require gl_PTHREADLIB. Determine YIELD_LIB based on $(LIB_SCHED_YIELD). * m4/threads.m4 (gl_THREADS_H): Don't require gl_YIELD. Use $(LIB_SCHED_YIELD), not $(YIELD_LIB). * modules/sched_yield (Files): Remove yield.m4. Add threadlib.m4. (Depends-on): Remove threadlib. (Link): Mention $(LIB_SCHED_YIELD), not $(YIELD_LIB). * modules/threads-h (Files): Remove m4/yield.m4. * modules/pthread-cond-tests (Makefile.am): Link the programs against $(LIB_SCHED_YIELD), not $(YIELD_LIB). * modules/pthread-mutex-tests (Makefile.am): Likewise. * modules/pthread-once-tests (Makefile.am): Likewise. * modules/pthread-rwlock-tests (Makefile.am): Likewise. * modules/pthread-tss-tests (Makefile.am): Likewise.
Diffstat (limited to 'modules/pthread-once-tests')
-rw-r--r--modules/pthread-once-tests2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/pthread-once-tests b/modules/pthread-once-tests
index 17b25b6d33..d77dc19a5a 100644
--- a/modules/pthread-once-tests
+++ b/modules/pthread-once-tests
@@ -14,4 +14,4 @@ Makefile.am:
TESTS += test-pthread-once1 test-pthread-once2
check_PROGRAMS += test-pthread-once1 test-pthread-once2
test_pthread_once1_LDADD = $(LDADD) @LIBPMULTITHREAD@
-test_pthread_once2_LDADD = $(LDADD) @LIBPMULTITHREAD@ @YIELD_LIB@
+test_pthread_once2_LDADD = $(LDADD) @LIBPMULTITHREAD@ @LIB_SCHED_YIELD@