$OpenBSD: patch-configure,v 1.7 2011/09/15 20:27:29 sthen Exp $ --- configure.orig Wed Aug 10 23:35:10 2011 +++ configure Wed Sep 14 15:56:22 2011 @@ -8899,13 +8899,13 @@ fi if test ! -z "$HAVE_PTHREAD_H"; then -echo "$as_me:$LINENO: checking for pthread_mutex_lock in -lpthread" >&5 -echo $ECHO_N "checking for pthread_mutex_lock in -lpthread... $ECHO_C" >&6 +echo "$as_me:$LINENO: checking for pthread_mutex_lock in -pthread" >&5 +echo $ECHO_N "checking for pthread_mutex_lock in -pthread... $ECHO_C" >&6 if test "${ac_cv_lib_pthread_pthread_mutex_lock+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 @@ -8968,17 +8968,17 @@ if test $ac_cv_lib_pthread_pthread_mutex_lock = yes; t #define HAVE_LIBPTHREAD 1 _ACEOF - LIBS="-lpthread $LIBS" + LIBS="-pthread $LIBS" fi - echo "$as_me:$LINENO: checking for pthread_mutex_lock in -lpthread" >&5 -echo $ECHO_N "checking for pthread_mutex_lock in -lpthread... $ECHO_C" >&6 + echo "$as_me:$LINENO: checking for pthread_mutex_lock in -pthread" >&5 +echo $ECHO_N "checking for pthread_mutex_lock in -pthread... $ECHO_C" >&6 if test "${ac_cv_lib_pthread_pthread_mutex_lock+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