diff options
author | Martin Blapp <mbr@FreeBSD.org> | 2007-03-16 12:20:45 +0000 |
---|---|---|
committer | Martin Blapp <mbr@FreeBSD.org> | 2007-03-16 12:20:45 +0000 |
commit | 4d6596886f5c32b1e193e6706ddd45b99b1d4295 (patch) | |
tree | 16b6ccad898b8472288017da075a9796fa98a5e3 /security/clamav | |
parent | ad285efe2dfaa3c20d8027975b0a7f456bb4f6df (diff) |
Notes
Diffstat (limited to 'security/clamav')
-rw-r--r-- | security/clamav/Makefile | 14 |
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 |