summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernd Kuhls <bernd.kuhls@t-online.de>2017-03-11 13:58:52 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-03-12 15:40:48 +0100
commita5b0607b4ab811d4cf55c760528093d439355bb7 (patch)
treecf80af594ac79b787ba355bfec55d7fa30f51bc5
parent629ca3a1cc963a45e90142598e695bd5af0e4cae (diff)
downloadbuildroot-a5b0607b4ab811d4cf55c760528093d439355bb7.tar.gz
buildroot-a5b0607b4ab811d4cf55c760528093d439355bb7.zip
package/clamav: needs libtool
clamav contains a copy of libltdl which is used when the libtool package is not present, this increases the filesize of the target libs: linked against libltdl.so: -rwxr-xr-x 1 bernd bernd 1838528 Mär 11 13:21 output/target/usr/lib/libclamav.so.7.1.1 $ output/host/usr/bin/i586-buildroot-linux-uclibc-readelf -a output/target/usr/lib/libclamav.so.7.1.1 | grep NEEDED 0x00000001 (NEEDED) Shared library: [libltdl.so.7] 0x00000001 (NEEDED) Shared library: [libssl.so.1.0.0] 0x00000001 (NEEDED) Shared library: [libcrypto.so.1.0.0] 0x00000001 (NEEDED) Shared library: [libz.so.1] 0x00000001 (NEEDED) Shared library: [libc.so.0] not linked against libltdl.so: -rwxr-xr-x 1 bernd bernd 1859548 Mär 11 13:21 output/target/usr/lib/libclamav.so.7.1.1 $ output/host/usr/bin/i586-buildroot-linux-uclibc-readelf -a output/target/usr/lib/libclamav.so.7.1.1 | grep NEEDED 0x00000001 (NEEDED) Shared library: [libssl.so.1.0.0] 0x00000001 (NEEDED) Shared library: [libcrypto.so.1.0.0] 0x00000001 (NEEDED) Shared library: [libz.so.1] 0x00000001 (NEEDED) Shared library: [libc.so.0] Therefore this patch adds libtool as hard dependency to clamav. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/clamav/Config.in1
-rw-r--r--package/clamav/clamav.mk3
2 files changed, 4 insertions, 0 deletions
diff --git a/package/clamav/Config.in b/package/clamav/Config.in
index 7ec402d9de..f832341a02 100644
--- a/package/clamav/Config.in
+++ b/package/clamav/Config.in
@@ -1,6 +1,7 @@
config BR2_PACKAGE_CLAMAV
bool "clamav"
select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE
+ select BR2_PACKAGE_LIBTOOL
select BR2_PACKAGE_OPENSSL
select BR2_PACKAGE_ZLIB
depends on BR2_TOOLCHAIN_HAS_THREADS
diff --git a/package/clamav/clamav.mk b/package/clamav/clamav.mk
index 36ab8be0e9..86bdda49e2 100644
--- a/package/clamav/clamav.mk
+++ b/package/clamav/clamav.mk
@@ -12,6 +12,7 @@ CLAMAV_LICENSE_FILES = COPYING COPYING.bzip2 COPYING.file COPYING.getopt \
COPYING.unrar COPYING.zlib
CLAMAV_DEPENDENCIES = \
host-pkgconf \
+ libtool \
openssl \
zlib \
$(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext)
@@ -24,6 +25,8 @@ CLAMAV_CONF_ENV = \
# UCLIBC_HAS_FTS is disabled, therefore disable fanotify (missing fts.h)
CLAMAV_CONF_OPTS = \
--with-dbdir=/var/lib/clamav \
+ --with-ltdl-include=$(STAGING_DIR)/usr/include \
+ --with-ltdl-lib=$(STAGING_DIR)/usr/lib \
--with-openssl=$(STAGING_DIR)/usr \
--with-zlib=$(STAGING_DIR)/usr \
--disable-zlib-vcheck \
OpenPOWER on IntegriCloud