summaryrefslogtreecommitdiffstats
path: root/package/bustle
diff options
context:
space:
mode:
Diffstat (limited to 'package/bustle')
-rw-r--r--package/bustle/bustle.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/package/bustle/bustle.mk b/package/bustle/bustle.mk
index 7bc3e97bc..9222cdbaa 100644
--- a/package/bustle/bustle.mk
+++ b/package/bustle/bustle.mk
@@ -10,9 +10,14 @@ BUSTLE_LICENSE = LGPLv2.1+
BUSTLE_LICENSE_FILES = LICENSE
BUSTLE_DEPENDENCIES = libglib2 libpcap host-pkgconf
+BUSTLE_PCAP_FLAGS = "-lpcap"
+ifeq ($(BR2_PREFER_STATIC_LIB),y)
+BUSTLE_PCAP_FLAGS += $(shell $(STAGING_DIR)/usr/bin/pcap-config --static --additional-libs)
+endif
+
define BUSTLE_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
- PCAP_FLAGS='-lpcap' -C $(@D) dist/build/bustle-pcap
+ PCAP_FLAGS="$(BUSTLE_PCAP_FLAGS)" -C $(@D) dist/build/bustle-pcap
endef
define BUSTLE_INSTALL_TARGET_CMDS