freebsd-ports/security/clamav/files/patch-configure
2009-03-27 11:52:22 +00:00

21 lines
622 B
Plaintext

--- configure.orig 2008-10-15 07:41:31.000000000 -0300
+++ configure 2008-10-15 08:55:58.000000000 -0300
@@ -17909,7 +17909,7 @@
;;
freebsd*)
if test "$have_pthreads" = "yes"; then
- THREAD_LIBS="-lthr"
+ THREAD_LIBS="%%PTHREAD_LIBS%%"
TH_SAFE="-thread-safe"
cat >>confdefs.h <<\_ACEOF
@@ -18269,7 +18269,7 @@
if test "$have_milter" = "yes"; then
save_LIBS="$LIBS"
- CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lpthread"
+ CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS $THREAD_LIBS"
if test -d /usr/lib/libmilter ; then
CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -L/usr/lib/libmilter"
fi