Commit 46c525e4 authored by Christophe Mutricy's avatar Christophe Mutricy

Revert "Properly detect POSIX threads on OpenBSD."

If main() is not found in pthread 10 line above it won't be find now.
And the patch submitter is looking for a better test

This reverts commit bb1d1eb5.
(cherry picked from commit c065c55c)

This reverts commit 31cef7fc.
parent 3debf725
...@@ -823,9 +823,6 @@ fi ...@@ -823,9 +823,6 @@ fi
if test "${THREAD_LIB}" = "error"; then if test "${THREAD_LIB}" = "error"; then
AC_CHECK_LIB(c_r,main,THREAD_LIB="-lc_r") AC_CHECK_LIB(c_r,main,THREAD_LIB="-lc_r")
fi fi
if test "${THREAD_LIB}" = "error"; then
AC_CHECK_LIB(pthread,main,THREAD_LIB="-pthread")
fi
if test "${THREAD_LIB}" = "error"; then if test "${THREAD_LIB}" = "error"; then
AC_CHECK_FUNCS(pthread_mutex_lock) AC_CHECK_FUNCS(pthread_mutex_lock)
THREAD_LIB="" THREAD_LIB=""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment