$OpenBSD: patch-configure_ac,v 1.8 2015/04/09 20:47:15 sthen Exp $
--- configure.ac.orig	Wed Dec 17 03:34:38 2014
+++ configure.ac	Fri Mar 13 20:47:48 2015
@@ -218,7 +218,7 @@ ORC_CFLAGS="$ORC_CFLAGS \$(ERROR_CFLAGS) -I\$(top_srcd
 AC_SUBST(ERROR_CFLAGS)
 AC_SUBST(ORC_CFLAGS)
 
-ORC_LIBS="\$(top_builddir)/orc/liborc-$ORC_MAJORMINOR.la $LIBM $LIBRT"
+ORC_LIBS="\$(top_builddir)/orc/liborc-$ORC_MAJORMINOR.la $LIBM $LIBRT $PTHREAD_LIBS"
 AC_SUBST(ORC_LIBS)
 
 #CFLAGS=`echo $CFLAGS | sed s/O2/O0/`
