aboutsummaryrefslogtreecommitdiff
path: root/package/knock
diff options
context:
space:
mode:
authorGravatar Baruch Siach <baruch@tkos.co.il>2014-06-22 20:23:16 +0300
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-06-22 21:53:35 +0200
commitb64a06d7b70bd7b160826bf9b97e60e18171913d (patch)
treecf4295ae4a55cfd428270319e22b12767df56bbd /package/knock
parent11fda42896f532a2d28070faa5c3c7ac4ccfb853 (diff)
downloadbuildroot-b64a06d7b70bd7b160826bf9b97e60e18171913d.tar.gz
buildroot-b64a06d7b70bd7b160826bf9b97e60e18171913d.tar.bz2
knock: fix static build
Use pcap-config to determine link dependencies of libpcap. Fixes: http://autobuild.buildroot.net/results/1eb/1eb877ebd9469c9261bf114fc7733819ae3fd562/ Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/knock')
-rw-r--r--package/knock/knock.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/knock/knock.mk b/package/knock/knock.mk
index 8d2b41e859..682d0316c4 100644
--- a/package/knock/knock.mk
+++ b/package/knock/knock.mk
@@ -10,4 +10,8 @@ KNOCK_LICENSE = GPLv2+
KNOCK_LICENSE_FILES = COPYING
KNOCK_DEPENDENCIES = libpcap
+ifeq ($(BR2_PREFER_STATIC_LIB),y)
+KNOCK_CONF_OPT = LIBS="$(shell $(STAGING_DIR)/usr/bin/pcap-config --static --additional-libs)"
+endif
+
$(eval $(autotools-package))