From b64a06d7b70bd7b160826bf9b97e60e18171913d Mon Sep 17 00:00:00 2001 From: Baruch Siach Date: Sun, 22 Jun 2014 20:23:16 +0300 Subject: [PATCH] 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 Signed-off-by: Thomas Petazzoni --- package/knock/knock.mk | 4 ++++ 1 file changed, 4 insertions(+) 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)) -- 2.30.2