summaryrefslogtreecommitdiff
path: root/modules/pthread
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2019-12-02 02:39:38 +0100
committerBruno Haible <bruno@clisp.org>2019-12-02 02:59:26 +0100
commit6a44771a9975f5de3a2f505118fe8f5e901ca96c (patch)
treeb3cabb7bae7061f22a09aa02bbd5fe91b606e50a /modules/pthread
parentbcd6630c7334085fc36f311b2019a8d4d8ca295e (diff)
downloadgnulib-6a44771a9975f5de3a2f505118fe8f5e901ca96c.tar.gz
pthread-h: Fix link errors with --enable-threads=isoc on AIX.
* m4/threadlib.m4 (gl_ANYTHREADLIB_EARLY): New macro, extracted from gl_THREADLIB_EARLY_BODY. (gl_THREADLIB_EARLY_BODY): Invoke it. (gl_PTHREADLIB_BODY): New macro, extracted from gl_THREADLIB_BODY. (gl_THREADLIB_BODY): Invoke it. (gl_PTHREADLIB): New macro. * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_PTHREADLIB. Require gl_THREADLIB and test $gl_threads_api only if module 'threadlib' is present. Define LIB_PTHREAD using LIBPMULTITHREAD, not LIBMULTITHREAD. * modules/pthread-h (Files): Add threadlib.m4. (Depends-on): Remove threadlib. (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY. Don't set _REENTRANT and _THREAD_SAFE here. (Link): Use LIBPTHREAD, not LIBTHREAD. * modules/pthread-thread (Link): Use LIBPMULTITHREAD, not LIBMULTITHREAD. * modules/pthread-once (Link): Likewise. * modules/pthread-mutex (Link): Likewise. * modules/pthread-rwlock (Link): Likewise. * modules/pthread-cond (Link): Likewise. * modules/pthread-tss (Link): Likewise. * modules/pthread-spin (Link): Likewise. * modules/pthread (Link): Likewise. * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Likewise. * modules/pthread-thread-tests (test_pthread_thread_LDADD): Likewise. * modules/pthread-once-tests (test_pthread_once1_LDADD, test_pthread_once2_LDADD): Likewise. * modules/pthread-mutex-tests (test_pthread_mutex_LDADD): Likewise. * modules/pthread-rwlock-tests (test_pthread_rwlock_LDADD): Likewise. * modules/pthread-cond-tests (test_pthread_cond_LDADD): Likewise. * modules/pthread-tss-tests (test_pthread_tss_LDADD): Likewise.
Diffstat (limited to 'modules/pthread')
-rw-r--r--modules/pthread2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/pthread b/modules/pthread
index c9c5614b21..455b73e33b 100644
--- a/modules/pthread
+++ b/modules/pthread
@@ -21,7 +21,7 @@ Include:
<pthread.h>
Link:
-$(LIBMULTITHREAD)
+$(LIBPMULTITHREAD)
License:
LGPLv2+