$OpenBSD: patch-calendar_libical_configure,v 1.3 2008/11/21 17:26:25 jasper Exp $
--- calendar/libical/configure.orig	Thu Oct 30 18:18:48 2008
+++ calendar/libical/configure	Thu Oct 30 18:19:55 2008
@@ -20994,13 +20994,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
@@ -21069,7 +21069,7 @@ cat >>confdefs.h <<\_ACEOF
 #define HAVE_PTHREAD /**/
 _ACEOF
 
-	   PTHREAD_LIBS=-lpthread
+	   PTHREAD_LIBS=-pthread
 	fi;;
 esac
 
