summaryrefslogtreecommitdiff
path: root/modules/pthread-h
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2019-07-15 02:36:21 +0200
committerBruno Haible <bruno@clisp.org>2019-07-15 02:36:21 +0200
commit9d925a90f747a353455b0d1d5e60f7fbe07baee1 (patch)
tree32938f6c358dc040cb2bbce034c28928e2d59105 /modules/pthread-h
parentfba5fd39277dce3cac9fb72394bc7b3af36303a6 (diff)
downloadgnulib-9d925a90f747a353455b0d1d5e60f7fbe07baee1.tar.gz
pthread-h: Respect --enable-threads={posix|windows} option on mingw.
* m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_THREADLIB. Set HAVE_PTHREAD_H if gl_threads_api is 'windows'. (LIB_PTHREAD): Rely on $LIBMULTITHREAD from threadlib.m4. * modules/pthread (Link): Change to $(LIBMULTITHREAD). * modules/pthread-h (Depends-on): Add threadlib. (Link): Change to $(LIBTHREAD). * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Use $(LIBMULTITHREAD) instead of $(LIB_PTHREAD).
Diffstat (limited to 'modules/pthread-h')
-rw-r--r--modules/pthread-h3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/pthread-h b/modules/pthread-h
index 370552a031..3054ce45c0 100644
--- a/modules/pthread-h
+++ b/modules/pthread-h
@@ -10,6 +10,7 @@ extensions
extern-inline
sched
time
+threadlib
configure.ac-early:
AC_DEFINE([_REENTRANT], 1, [For thread-safety on OSF/1, Solaris.])
@@ -46,7 +47,7 @@ Include:
<pthread.h>
Link:
-$(LIB_PTHREAD)
+$(LIBTHREAD)
License:
LGPLv2+