From b1c72389c326aa4280e95848b24e5e2e4281ce11 Mon Sep 17 00:00:00 2001 From: matthieu Date: Sun, 14 Oct 2012 08:58:45 +0000 Subject: [PATCH] Link Xorg with -lpthread, for the llvm-pipe drm. Requested by mpi@ Tested that it doesn't have any performance impact. ok ajacoutot@, matthew@ (some months ago). --- xserver/configure.ac | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/xserver/configure.ac b/xserver/configure.ac index 426834300..773b9dbf9 100644 --- a/xserver/configure.ac +++ b/xserver/configure.ac @@ -1144,6 +1144,14 @@ if test "x$DRI2" = xyes; then fi AM_CONDITIONAL(DRI2_AIGLX, test "x$DRI2_AIGLX" = xyes) +# link Xorg with pthreads for llvm-pipe driver on OpenBSD +if test "x$DRI2" = xyes; then + case $host_os in + openbsd*) + XORG_SYS_LIBS="-lpthread" + ;; + esac +fi AM_CONDITIONAL(XINERAMA, [test "x$XINERAMA" = xyes]) if test "x$XINERAMA" = xyes; then