summaryrefslogtreecommitdiffstats
path: root/package/bustle
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2014-04-27 11:10:40 +0300
committerPeter Korsgaard <peter@korsgaard.com>2014-04-27 22:31:25 +0200
commitbf232dd02de49d34a39443b94d99b147f396f8db (patch)
treed63a909336860c498f93157890575c779768ff19 /package/bustle
parentd00d1bdeb5b7338c27bb12d0775b6dc1d52e4770 (diff)
bustle: fix static build
Use pcap-config to list optional libpcap dependencies needed for static link. Fixes: http://autobuild.buildroot.net/results/569/56987b9c39376d2443b96160485f4fd8eefda9bb/ Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
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