diff options
author | Lev A. Serebryakov <lev@FreeBSD.org> | 2003-11-11 13:26:14 +0000 |
---|---|---|
committer | Lev A. Serebryakov <lev@FreeBSD.org> | 2003-11-11 13:26:14 +0000 |
commit | e7d7101624e13fb0af7ccf94792813a28adf1dff (patch) | |
tree | 72973ded2e3e67ccf422df87d92f905a55658741 /devel/apr1 | |
parent | Update to 3.02. (diff) |
Fix pthreads support on 4-STABLE systems
Submitted by: MAINTAINER
Notes
Notes:
svn path=/head/; revision=93735
Diffstat (limited to 'devel/apr1')
-rw-r--r-- | devel/apr1/Makefile | 2 | ||||
-rw-r--r-- | devel/apr1/files/patch-apr_hints.m4 | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/devel/apr1/Makefile b/devel/apr1/Makefile index 32fa63fa338d..4a3eec34f48f 100644 --- a/devel/apr1/Makefile +++ b/devel/apr1/Makefile @@ -14,7 +14,7 @@ PORTNAME= apr PORTVERSION= 0.9.4 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= devel MASTER_SITES= http://www.apache.org/dist/apr/ DISTFILES= apr-${PORTVERSION}.tar.gz apr-util-${PORTVERSION}.tar.gz diff --git a/devel/apr1/files/patch-apr_hints.m4 b/devel/apr1/files/patch-apr_hints.m4 index 7c8f8547efff..9e01ac75f936 100644 --- a/devel/apr1/files/patch-apr_hints.m4 +++ b/devel/apr1/files/patch-apr_hints.m4 @@ -16,7 +16,7 @@ - APR_ADDTO(CPPFLAGS, [-D_REENTRANT -D_THREAD_SAFE]) + if test $os_version -lt "500016"; then + ac_cv_pthreads_cflags="-D_THREAD_SAFE -D_REENTRANT" -+ APR_ADDTO(LIBS, [-pthread]) ++ LIBS="$LIBS -pthread" + else + ac_cv_pthreads_lib="c_r" + fi |