Skip to contentSkip to conversation

package/sngrep: fix static linking against libpcap

PATCH New Bernd Kuhls 2 participants 2 messages Jan 29, 2017 – Feb 6, 2017

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 package/sngrep: fix static linking against libpcap

Inspired by
https://git.buildroot.net/buildroot/tree/package/aircrack-ng/aircrack-ng.mk#n30

Fixes
http://autobuild.buildroot.net/results/699/6993c398649469e25f2491fdb8f1ac9b6d6d8c3c/
http://autobuild.buildroot.net/results/846/8468df3462ac6d53faef228ca241bc500b2d7a52/

---
v2: optimized pcap-config call (Thomas)

 package/sngrep/sngrep.mk | 3 +++
 1 file changed, 3 insertions(+)
package/sngrep/sngrep.mk +3 -0
index 52c8a2da4..b82d8cefa 100644
@@ -11,6 +11,9 @@ SNGREP_LICENSE_FILES = LICENSE
 SNGREP_AUTORECONF = YES
 SNGREP_DEPENDENCIES = libpcap ncurses
 
+SNGREP_CONF_ENV += \
+	$(if $(BR2_STATIC_LIBS),LIBS="`$(STAGING_DIR)/usr/bin/pcap-config --static --libs`")
+
 # our ncurses wchar support is not properly detected
 SNGREP_CONF_OPTS += --disable-unicode
 
Signature · 1 line
2.11.0
#1 lore raw

PATCH v2 1/1 package/sngrep: fix static linking against libpcap

Hello,

Quoted 10 lines · Bernd Kuhls

Inspired by
https://git.buildroot.net/buildroot/tree/package/aircrack-ng/aircrack-ng.mk#n30

Fixes
http://autobuild.buildroot.net/results/699/6993c398649469e25f2491fdb8f1ac9b6d6d8c3c/
http://autobuild.buildroot.net/results/846/8468df3462ac6d53faef228ca241bc500b2d7a52/

---
v2: optimized pcap-config call (Thomas)

Applied to master, thanks.

Thomas

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