[PATCH libX11] Fix libpthread linkage on OpenBSD.

Matthieu Herrb matthieu.herrb at laas.fr
Tue Jul 12 01:15:11 PDT 2011


From: David Coppa <dcoppa at gmail.com>

OpenBSD prefers to use the -pthread to fetch pthread libs when needed.

Signed-off-by: Matthieu Herrb <matthieu.herrb at laas.fr>
---
 configure.ac |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 0c68ff4..a449ba8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -279,7 +279,7 @@ AM_CONDITIONAL(THRSTUBS, test x$thrstubs = xyes)
 # XXX incomplete, please fill this in
 if test x$xthreads = xyes ; then
     case $host_os in
-    linux*|openbsd*|gnu*|k*bsd*-gnu)
+    linux*|gnu*|k*bsd*-gnu)
         XTHREADLIB=-lpthread ;;
     netbsd*)
 	XTHREAD_CFLAGS="-D_POSIX_THREAD_SAFE_FUNCTIONS"
@@ -287,7 +287,7 @@ if test x$xthreads = xyes ; then
     freebsd*)
         XTHREAD_CFLAGS="-D_THREAD_SAFE"
         XTHREADLIB="-pthread" ;;
-    dragonfly*)
+    dragonfly*|openbsd*)
         XTHREADLIB="-pthread" ;;
     solaris*)
 	XTHREAD_CFLAGS="-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" ;;
-- 
1.7.4.1



More information about the xorg-devel mailing list