package/bustle: fix static build
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Mon, 4 Jan 2021 06:54:52 +0000 (07:54 +0100)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Tue, 2 Mar 2021 20:49:47 +0000 (21:49 +0100)
Commit 436cb9308a50b1007a42eb490405a3155307a771 wrongly removed --static
from pcap-config call

Fixes:
 - http://autobuild.buildroot.org/results/b5d8d8d8452342373c2446613ba3051c20a97c03

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
package/bustle/bustle.mk

index c6c3a72a9110fae15ba49bc4eff2839e5390379b..b92d1a3ea9c69ba96ccea9914cdfa740c82f5203 100644 (file)
@@ -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) \