mirror of
https://gitlab.freedesktop.org/xorg/lib/libx11.git
synced 2026-05-01 17:17:59 +02:00
Fix libpthread linkage on OpenBSD.
OpenBSD prefers to use the -pthread to fetch pthread libs when needed. Signed-off-by: Matthieu Herrb <matthieu.herrb@laas.fr> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
This commit is contained in:
parent
445b0b3efc
commit
5c831fef40
1 changed files with 2 additions and 2 deletions
|
|
@ -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" ;;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue