$OpenBSD: patch-configure,v 1.2 2010/04/26 09:15:00 stephan Exp $ --- configure.orig Thu Apr 8 15:40:14 2010 +++ configure Thu Apr 8 15:42:14 2010 @@ -23078,13 +23078,13 @@ fi PTHREAD_LIBS=notfound if test "x$PTHREAD_LIBS" = xnotfound; then -{ echo "$as_me:$LINENO: checking for pthread_exit in -lpthread" >&5 -echo $ECHO_N "checking for pthread_exit in -lpthread... $ECHO_C" >&6; } +{ echo "$as_me:$LINENO: checking for pthread_exit in -pthread" >&5 +echo $ECHO_N "checking for pthread_exit in -pthread... $ECHO_C" >&6; } if test "${ac_cv_lib_pthread_pthread_exit+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 @@ -23140,7 +23140,7 @@ fi { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_exit" >&5 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_exit" >&6; } if test $ac_cv_lib_pthread_pthread_exit = yes; then - PTHREAD_LIBS="-lpthread" + PTHREAD_LIBS="-pthread" fi fi