summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Coppa <dcoppa@gmail.com>2011-07-12 10:05:47 +0200
committerMatthieu Herrb <matthieu.herrb@laas.fr>2011-07-14 14:04:27 +0200
commit5c831fef402914ccf2ec14005c25be48852f119b (patch)
tree0bf0eb06ec0a3b592c42a159677e309333ebd371
parent445b0b3efc04a74fc77cd3e483b25cfb5da82f12 (diff)
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>
-rw-r--r--configure.ac4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 0c68ff4c..a449ba8b 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" ;;