$OpenBSD: patch-configure,v 1.1 2003/06/30 20:41:15 sturm Exp $
--- configure.orig	Fri Feb 23 23:09:56 2001
+++ configure	Sat Jun 28 21:35:29 2003
@@ -4220,13 +4220,13 @@ LIB_THREAD=''
 if test "$with_threads" != 'no'
 then
 
-echo "$as_me:4223: checking for pthread_attr_init in -lpthread" >&5
-echo $ECHO_N "checking for pthread_attr_init in -lpthread... $ECHO_C" >&6
+echo "$as_me:4223: checking for pthread_attr_init in -pthread" >&5
+echo $ECHO_N "checking for pthread_attr_init in -pthread... $ECHO_C" >&6
 if test "${ac_cv_lib_pthread_pthread_attr_init+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
 #line 4231 "configure"
 #include "confdefs.h"
@@ -4274,7 +4274,7 @@ cat >>confdefs.h <<\EOF
 #define HasPTHREADS
 EOF
 
-     LIB_THREAD="-lpthread"
+     LIB_THREAD="-pthread"
      DEF_THREAD="-D_REENTRANT"
 fi
 
