Skip to contentSkip to conversation

knock: fix static build

PATCH New Baruch Siach 2 participants 2 messages Jun 22, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 knock: fix static build

Use pcap-config to determine link dependencies of libpcap.

Fixes:
http://autobuild.buildroot.net/results/1eb/1eb877ebd9469c9261bf114fc7733819ae3fd562/

---
 package/knock/knock.mk | 4 ++++
 1 file changed, 4 insertions(+)
package/knock/knock.mk +4 -0
index 8d2b41e859f4..682d0316c402 100644
@@ -10,4 +10,8 @@ KNOCK_LICENSE = GPLv2+
 KNOCK_LICENSE_FILES = COPYING
 KNOCK_DEPENDENCIES = libpcap
 
+ifeq ($(BR2_PREFER_STATIC_LIB),y)
+KNOCK_CONF_OPT = LIBS="$(shell $(STAGING_DIR)/usr/bin/pcap-config --static --additional-libs)"
+endif
+
 $(eval $(autotools-package))
Signature · 1 line
2.0.0
#1 lore raw

PATCH 1/1 knock: fix static build

Dear Baruch Siach,

Quoted 9 lines · Baruch Siach

Use pcap-config to determine link dependencies of libpcap.

Fixes:
http://autobuild.buildroot.net/results/1eb/1eb877ebd9469c9261bf114fc7733819ae3fd562/

---
 package/knock/knock.mk | 4 ++++
 1 file changed, 4 insertions(+)

Applied, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com