summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/iftop/iftop.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/iftop/iftop.mk b/package/iftop/iftop.mk
index 24f8b53ab3..ef162a8533 100644
--- a/package/iftop/iftop.mk
+++ b/package/iftop/iftop.mk
@@ -10,4 +10,10 @@ IFTOP_DEPENDENCIES = ncurses libpcap
IFTOP_LICENSE = GPLv2+
IFTOP_LICENSE_FILES = COPYING
+IFTOP_LIBS = -lpcap
+ifeq ($(BR2_PREFER_STATIC_LIB),y)
+IFTOP_LIBS += $(shell $(STAGING_DIR)/usr/bin/pcap-config --static --additional-libs)
+endif
+IFTOP_CONF_ENV += LIBS+="$(IFTOP_LIBS)"
+
$(eval $(autotools-package))
OpenPOWER on IntegriCloud