$OpenBSD: patch-configure,v 1.7 2010/01/13 08:47:57 ajacoutot Exp $
--- configure.orig	Tue Jan 12 10:27:34 2010
+++ configure	Tue Jan 12 10:28:23 2010
@@ -16613,13 +16613,13 @@ $as_echo "no" >&6; }
      esac
 
 	if test "$have_pthread" != "yes"; then
-        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
-$as_echo_n "checking for main in -lpthread... " >&6; }
+        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -pthread" >&5
+$as_echo_n "checking for main in -pthread... " >&6; }
 if test "${ac_cv_lib_pthread_main+set}" = set; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lpthread  $LIBS"
+LIBS="-pthread  $LIBS"
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
@@ -16650,7 +16650,7 @@ else
 fi
 
 	   if test "$have_pthread" = "yes"; then
-	   	 PTHREAD_LIBS="-lpthread"
+	   	 PTHREAD_LIBS="-pthread"
 	   fi
      fi
 
@@ -20249,7 +20249,7 @@ if test "${ac_cv_lib_avformat_main+set}" = set; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lavformat  $LIBS"
+LIBS="-lavformat -pthread $LIBS"
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
