summaryrefslogtreecommitdiffstats
path: root/package/tcpdump
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2014-11-11 12:23:03 +0200
committerPeter Korsgaard <peter@korsgaard.com>2014-11-11 22:40:55 +0100
commitda1a445d419cfdd168c02f2ebc71800e7c86dc8d (patch)
treea75476249cd8f1d856886ff2f52892028809ce63 /package/tcpdump
parent22b0c44eb6b71301eecac5c32e6078bb9619323c (diff)
downloadbuildroot-da1a445d419cfdd168c02f2ebc71800e7c86dc8d.tar.gz
buildroot-da1a445d419cfdd168c02f2ebc71800e7c86dc8d.zip
tcpdump: fix static build
Commit 746116d1eb2e (tcpdump: use libpcap shared library) broke static build of tcpdump, because its configure script doesn't take into account indirect dependencies of libpcap. Add these dependencies to the LIBS configure parameter. Fixes: http://autobuild.buildroot.net/results/fd231d34e4bb0306609b021e9e74eb862b7bd6bd/ Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/tcpdump')
-rw-r--r--package/tcpdump/tcpdump.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/tcpdump/tcpdump.mk b/package/tcpdump/tcpdump.mk
index e62dfaf44a..1acf7d9e30 100644
--- a/package/tcpdump/tcpdump.mk
+++ b/package/tcpdump/tcpdump.mk
@@ -16,6 +16,10 @@ TCPDUMP_DEPENDENCIES = zlib libpcap
# Patching aclocal.m4
TCPDUMP_AUTORECONF = YES
+ifeq ($(BR2_PREFER_STATIC_LIB),y)
+TCPDUMP_CONF_OPTS += LIBS="$(shell $(STAGING_DIR)/usr/bin/pcap-config --static --additional-libs)"
+endif
+
# make install installs an unneeded extra copy of the tcpdump binary
define TCPDUMP_REMOVE_DUPLICATED_BINARY
rm -f $(TARGET_DIR)/usr/sbin/tcpdump.$(TCPDUMP_VERSION)
OpenPOWER on IntegriCloud