aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authormbr <mbr@FreeBSD.org>2007-03-16 20:20:45 +0800
committermbr <mbr@FreeBSD.org>2007-03-16 20:20:45 +0800
commitff801c85529b7d52bbcafde338820dd7d9338535 (patch)
treec672ee8e4999ab9084a321c3840b428609840c0b /security
parent127d1260794278469d6ec4dd3028ded4ecf63f4a (diff)
downloadfreebsd-ports-gnome-ff801c85529b7d52bbcafde338820dd7d9338535.tar.gz
freebsd-ports-gnome-ff801c85529b7d52bbcafde338820dd7d9338535.tar.zst
freebsd-ports-gnome-ff801c85529b7d52bbcafde338820dd7d9338535.zip
And unbreak support for older FreeBSDs where libthr/libpthread did not exist.
PR: 110334
Diffstat (limited to 'security')
-rw-r--r--security/clamav/Makefile14
1 files changed, 9 insertions, 5 deletions
diff --git a/security/clamav/Makefile b/security/clamav/Makefile
index 53a974c8c1a2..ca36871cd835 100644
--- a/security/clamav/Makefile
+++ b/security/clamav/Makefile
@@ -30,10 +30,6 @@ CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_LDCONFIG= yes
USE_RC_SUBR= clamav-clamd clamav-freshclam
-# This port has a problem with -pthread,
-# force to use -lthr until it's not fixed.
-PTHREAD_LIBS= -lthr
-
PORTDOCS= *
DBDIR= /var/db/clamav
@@ -102,7 +98,15 @@ PLIST_SUB+= CLAMAVUSER=${CLAMAVUSER} \
.include <bsd.port.pre.mk>
-.if ${OSVERSION} < 601000
+# This port has a problem with -pthread,
+# force to use -lthr until it's not fixed.
+.if ${OSVERSION} >= 601000
+PTHREAD_LIBS= -lthr
+.endif
+# Maybe the port is broken for
+# FreeBSD 5.2.1 since -lc_r
+# and -pthread have both issues there.
+.if ${OSVERSION} == 502010
PTHREAD_LIBS= -pthread
.endif