package/sngrep: fix static linking against libpcap
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
@@ -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
Thomas Petazzoni
AppliedPATCH 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#n30Fixes
http://autobuild.buildroot.net/results/699/6993c398649469e25f2491fdb8f1ac9b6d6d8c3c/
http://autobuild.buildroot.net/results/846/8468df3462ac6d53faef228ca241bc500b2d7a52/Signed-off-by Bernd Kuhls <[email protected]>---
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