From ff801c85529b7d52bbcafde338820dd7d9338535 Mon Sep 17 00:00:00 2001 From: mbr Date: Fri, 16 Mar 2007 12:20:45 +0000 Subject: And unbreak support for older FreeBSDs where libthr/libpthread did not exist. PR: 110334 --- security/clamav/Makefile | 14 +++++++++----- 1 file 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 -.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 -- cgit