summaryrefslogtreecommitdiff
path: root/package/clamav
diff options
context:
space:
mode:
authorYann E. MORIN <yann.morin.1998@free.fr>2014-11-25 20:22:35 +0100
committerPeter Korsgaard <peter@korsgaard.com>2014-11-25 22:35:43 +0100
commita3926f3a64f299e6d5463af8ad5ed63d2c6ba5fe (patch)
tree73b3608f8a6915bb470db6a3b11862729259982c /package/clamav
parentb89ce67523b6c18ded565b36fcc09876434cd026 (diff)
package/clamav: fix static build
clamav unconditionally includes dlfcn.h which is missing on a uClibc that is configured as a pure-static C library. Thus, the build fails. But the including file does not even makes use of any function from the dlopen() familly, so it does not need to include dlfcn.h to start with. Add a patch to clamav to not include dlfcn.h where not needed. Fixes: http://autobuild.buildroot.net/results/b49/b491f4e5e1760248adb8d21b404e8aa15f7dbdd1/ [Peter: fix typo in patch description] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/clamav')
-rw-r--r--package/clamav/clamav-0004-fix-static-build.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/package/clamav/clamav-0004-fix-static-build.patch b/package/clamav/clamav-0004-fix-static-build.patch
new file mode 100644
index 000000000..9c7850a6e
--- /dev/null
+++ b/package/clamav/clamav-0004-fix-static-build.patch
@@ -0,0 +1,21 @@
+stats: fix static link
+
+The stats.c file does not use the dlopen() familly of functions, but
+includes dlfcn.h, which is missing on uClibc when it is configured as
+a static-only C library.
+
+so, simply do not include dlfcn.h.
+
+Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
+
+diff -durN clamav-0.98.5.orig/libclamav/stats.c clamav-0.98.5/libclamav/stats.c
+--- clamav-0.98.5.orig/libclamav/stats.c 2014-11-13 23:30:43.000000000 +0100
++++ clamav-0.98.5/libclamav/stats.c 2014-11-25 19:57:14.344291266 +0100
+@@ -41,7 +41,6 @@
+ #include <sys/sysctl.h>
+ #endif
+ #endif
+-#include <dlfcn.h>
+ #else
+ #include <Windows.h>
+ #include <tchar.h>