ports/devel/apr2/files/patch-build__apr_hints.m4
Olli Hauer c7015e1a7c - update to r1676013
- make threads mandatory
- enable posix-shm
2015-05-23 21:26:36 +00:00

20 lines
776 B
Text

--- build/apr_hints.m4.orig 2015-04-05 07:04:48 UTC
+++ build/apr_hints.m4
@@ -147,15 +147,11 @@ dnl # Not a problem in 10.20. Ot
;;
*-freebsd*)
APR_SETIFNULL(apr_lock_method, [USE_FLOCK_SERIALIZE])
- if test -x /sbin/sysctl; then
- os_version=`/sbin/sysctl -n kern.osreldate`
- else
- os_version=000000
- fi
+ osversion=%%OSVERSION%%
# 502102 is when libc_r switched to libpthread (aka libkse).
if test $os_version -ge "502102"; then
apr_cv_pthreads_cflags="none"
- apr_cv_pthreads_lib="-lpthread"
+ apr_cv_pthreads_lib="-pthread"
else
APR_ADDTO(CPPFLAGS, [-D_THREAD_SAFE -D_REENTRANT])
APR_SETIFNULL(enable_threads, [no])