Skip to contentSkip to conversation

package/bustle: fix static build

PATCH New Fabrice Fontaine 2 participants 2 messages Jan 4, 2021 – Mar 2, 2021

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 package/bustle: fix static build

Commit 436cb9308a50b1007a42eb490405a3155307a771 wrongly removed --static from pcap-config call

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

---
Changes v1 -> v2 (after review of Yann E. Morin):
- Only add --static if BR2_STATIC_LIBS is set

 package/bustle/bustle.mk | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
package/bustle/bustle.mk +6 -1
index c6c3a72a91..b92d1a3ea9 100644
@@ -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) \
Signature · 1 line
2.29.2
#1 lore raw

PATCH v2 1/1 package/bustle: fix static build

Quoted 7 lines · Fabrice Fontaine

Commit 436cb9308a50b1007a42eb490405a3155307a771 wrongly removed --static from pcap-config call

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

Applied to master, thanks.

Regards,
Arnout

Quoted 26 lines

---
Changes v1 -> v2 (after review of Yann E. Morin):
- Only add --static if BR2_STATIC_LIBS is set

 package/bustle/bustle.mk | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
package/bustle/bustle.mk +6 -1
index c6c3a72a91..b92d1a3ea9 100644
@@ -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) \