aboutsummaryrefslogtreecommitdiffstats
path: root/devel/apr
diff options
context:
space:
mode:
authorlev <lev@FreeBSD.org>2003-11-11 21:26:14 +0800
committerlev <lev@FreeBSD.org>2003-11-11 21:26:14 +0800
commit22005d4c290a604adb3ab39fb40d991b1a168b35 (patch)
tree596dcebeae06ced3820b154aa7d28ce9588dbe28 /devel/apr
parenta9dc5bfe9f6dd9f162a20698af88869421345ff0 (diff)
downloadfreebsd-ports-graphics-22005d4c290a604adb3ab39fb40d991b1a168b35.tar.gz
freebsd-ports-graphics-22005d4c290a604adb3ab39fb40d991b1a168b35.tar.zst
freebsd-ports-graphics-22005d4c290a604adb3ab39fb40d991b1a168b35.zip
Fix pthreads support on 4-STABLE systems
Submitted by: MAINTAINER
Diffstat (limited to 'devel/apr')
-rw-r--r--devel/apr/Makefile2
-rw-r--r--devel/apr/files/patch-apr_hints.m42
2 files changed, 2 insertions, 2 deletions
diff --git a/devel/apr/Makefile b/devel/apr/Makefile
index 32fa63fa338..4a3eec34f48 100644
--- a/devel/apr/Makefile
+++ b/devel/apr/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/apr/files/patch-apr_hints.m4 b/devel/apr/files/patch-apr_hints.m4
index 7c8f8547eff..9e01ac75f93 100644
--- a/devel/apr/files/patch-apr_hints.m4
+++ b/devel/apr/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