$OpenBSD: patch-calendar_libical_configure,v 1.4 2009/03/04 20:09:43 jasper Exp $
--- calendar/libical/configure.orig	Wed Feb 25 03:39:19 2009
+++ calendar/libical/configure	Wed Feb 25 17:59:18 2009
@@ -20970,13 +20970,13 @@ _ACEOF
 		PTHREAD_LIBS=-pthread;;
 
 	*)
-	{ $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
-$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
+	{ $as_echo "$as_me:$LINENO: checking for pthread_create in -pthread" >&5
+$as_echo_n "checking for pthread_create in -pthread... " >&6; }
 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lpthread  $LIBS"
+LIBS="-pthread  $LIBS"
 cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF
@@ -21045,7 +21045,7 @@ cat >>confdefs.h <<\_ACEOF
 #define HAVE_PTHREAD /**/
 _ACEOF
 
-	   PTHREAD_LIBS=-lpthread
+	   PTHREAD_LIBS=-pthread
 	fi;;
 esac
 
