[Buildroot] [git commit] package/bustle: fix static build
Arnout Vandecappelle (Essensium/Mind)
arnout at mind.be
Tue Mar 2 20:49:47 UTC 2021
commit: https://git.buildroot.net/buildroot/commit/?id=10e65c92fe67ef6c8eae9979ee3ea9eea532e1a3
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
Commit 436cb9308a50b1007a42eb490405a3155307a771 wrongly removed --static
from pcap-config call
Fixes:
- http://autobuild.buildroot.org/results/b5d8d8d8452342373c2446613ba3051c20a97c03
Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout at mind.be>
---
package/bustle/bustle.mk | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/package/bustle/bustle.mk b/package/bustle/bustle.mk
index c6c3a72a91..b92d1a3ea9 100644
--- a/package/bustle/bustle.mk
+++ b/package/bustle/bustle.mk
@@ -9,7 +9,12 @@ BUSTLE_SITE = https://hackage.haskell.org/package/bustle-$(BUSTLE_VERSION)
BUSTLE_LICENSE = LGPL-2.1+
BUSTLE_LICENSE_FILES = LICENSE
BUSTLE_DEPENDENCIES = libglib2 libpcap host-pkgconf
-BUSTLE_MAKE_OPTS = PCAP_CONFIG=$(STAGING_DIR)/usr/bin/pcap-config
+
+ifeq ($(BR2_STATIC_LIBS),y)
+BUSTLE_MAKE_OPTS += PCAP_CONFIG="$(STAGING_DIR)/usr/bin/pcap-config --static"
+else
+BUSTLE_MAKE_OPTS += PCAP_CONFIG="$(STAGING_DIR)/usr/bin/pcap-config"
+endif
define BUSTLE_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
More information about the buildroot
mailing list