Fix for freebsd pthreads

This commit is contained in:
Ron Pedde 2005-01-24 01:03:43 +00:00
parent 46166a9135
commit 07e0490120

View File

@ -19,7 +19,9 @@ rend_posix=true
STATIC_LIBS=no
CPPFLAGS="${CPPFLAGS} -g"
AC_CHECK_LIB(pthread,pthread_create,LDFLAGS="$LDFLAGS -lpthread")
dnl fix freebsd's broken (?) libpthread
AC_CHECK_LIB(c_r,pthread_creat,LDFLAGS="${LDFLAGS} -lc_r", [
AC_CHECK_LIB(pthread,pthread_create,LDFLAGS="${LDFLAGS} -lpthread") ])
AC_ARG_ENABLE(debug,[ --enable-debug Enable debugging features],
CPPFLAGS="${CPPFLAGS} -Wall")