Hi,
Isn't this wrong?
$ cat /usr/X11R6/lib/pkgconfig/x11.pc
prefix=/usr/X11R6
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
xthreadlib=-lpthread
Name: X11
Description: X Library
Version: 1.4.3
Requires: xproto kbproto
Requires.private: xcb >= 1.1.92
Cflags: -I${includedir}
Libs: -L${libdir} -lX11
Libs.private: -lpthread
cheers,
David
Index: configure
===================================================================
RCS file: /cvs/xenocara/lib/libX11/configure,v
retrieving revision 1.16
diff -u -p -r1.16 configure
--- configure 30 May 2011 20:52:47 -0000 1.16
+++ configure 8 Jul 2011 13:58:28 -0000
@@ -24511,7 +24511,7 @@ fi
# 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"
@@ -24519,7 +24519,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" ;;
Index: configure.ac
===================================================================
RCS file: /cvs/xenocara/lib/libX11/configure.ac,v
retrieving revision 1.8
diff -u -p -r1.8 configure.ac
--- configure.ac 30 May 2011 20:52:47 -0000 1.8
+++ configure.ac 8 Jul 2011 13:58:28 -0000
@@ -287,7 +287,7 @@ AM_CONDITIONAL(THRSTUBS, test x$thrstubs
# 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"
@@ -295,7 +295,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" ;;