$OpenBSD: patch-configure,v 1.5 2009/05/15 06:57:18 sthen Exp $
--- configure.orig	Thu Apr 30 11:20:13 2009
+++ configure	Sun May  3 01:48:23 2009
@@ -32362,13 +32362,13 @@ echo "${ECHO_T}no" >&6; }
      esac
 
 	if test "$have_pthread" != "yes"; then
-        { echo "$as_me:$LINENO: checking for main in -lpthread" >&5
-echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6; }
+        { echo "$as_me:$LINENO: checking for main in -pthread" >&5
+echo $ECHO_N "checking for main in -pthread... $ECHO_C" >&6; }
 if test "${ac_cv_lib_pthread_main+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lpthread  $LIBS"
+LIBS="-pthread  $LIBS"
 cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF
@@ -32424,7 +32424,7 @@ else
 fi
 
 	   if test "$have_pthread" = "yes"; then
-	   	 PTHREAD_LIBS="-lpthread"
+	   	 PTHREAD_LIBS="-pthread"
 	   fi
      fi
 
@@ -38803,7 +38803,7 @@ if test "${ac_cv_lib_avformat_main+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lavformat  $LIBS"
+LIBS="-lavformat -pthread $LIBS"
 cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF
