summaryrefslogtreecommitdiff
path: root/security/clamav/files/patch-configure
blob: 9f3eccdaaaf290212dadaafda98bdf69ad8b8ec5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- configure.orig	2014-05-06 15:59:41.000000000 -0300
+++ configure	2014-05-15 13:28:43.000000000 -0300
@@ -3450,6 +3450,8 @@
 LIBCLAMAV_VERSION="$LC_CURRENT":"$LC_REVISION":"$LC_AGE"
 
 
+major=`expr $LC_CURRENT - $LC_AGE`
+
 
 cat >>confdefs.h <<_ACEOF
 #define LIBCLAMAV_FULLVER "$major.$LC_AGE.$LC_REVISION"
@@ -18564,7 +18566,7 @@
     ;;
 freebsd*)
     if test "$have_pthreads" = "yes"; then
-	THREAD_LIBS="-lthr"
+	THREAD_LIBS="%%PTHREAD_LIBS%%"
 	TH_SAFE="-thread-safe"
     fi
 
@@ -18740,7 +18742,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