diff options
author | Bernd Kuhls <bernd.kuhls@t-online.de> | 2014-08-09 17:54:42 +0200 |
---|---|---|
committer | Peter Korsgaard <peter@korsgaard.com> | 2014-08-16 00:32:53 +0200 |
commit | f68d9bcac415c275db551a27a852d3edf09e0146 (patch) | |
tree | e3dcc8586e27e7d9160f0d39218c885b7b489b5a /package/ngrep | |
parent | 3d13ab8ecc6103bd42244cf7133fed5f90e129e5 (diff) | |
download | buildroot-f68d9bcac415c275db551a27a852d3edf09e0146.tar.gz buildroot-f68d9bcac415c275db551a27a852d3edf09e0146.zip |
package/ngrep: fix static build
Use pcap-config to list optional libpcap dependencies that we need to list
when building statically.
Inspired by Baruch Siach
http://git.buildroot.net/buildroot/commit/package/dhcpdump/dhcpdump.mk?id=429f4415cd153c6809394a8b3245d4d15bba3ec3
Fixes
http://autobuild.buildroot.net/results/3c5/3c584b850cabebcf93dfd61c59e28988165a41c4/
http://autobuild.buildroot.net/results/938/93842b54767cca51c68ad33ddc93ec58d70602c8/
http://autobuild.buildroot.net/results/0ae/0ae4adec7fe66f819c7b3dabf13648fb29247de6/
http://autobuild.buildroot.net/results/9c2/9c203bc6ca91da68c9e7335611c1fb56224380bc/
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/ngrep')
-rw-r--r-- | package/ngrep/ngrep.mk | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/package/ngrep/ngrep.mk b/package/ngrep/ngrep.mk index 0bb5d7ecdb..18a2e74b48 100644 --- a/package/ngrep/ngrep.mk +++ b/package/ngrep/ngrep.mk @@ -10,7 +10,13 @@ NGREP_SITE = http://downloads.sourceforge.net/project/ngrep/ngrep/$(NGREP_VERSIO NGREP_LICENSE = BSD-4c-like NGREP_LICENSE_FILES = LICENSE.txt NGREP_INSTALL_STAGING = YES -NGREP_CONF_ENV = LIBS="-lpcre" + +NGREP_LIBS = -lpcap -lpcre +ifeq ($(BR2_PREFER_STATIC_LIB),y) +NGREP_LIBS += $(shell $(STAGING_DIR)/usr/bin/pcap-config --static --additional-libs) +endif +NGREP_CONF_ENV += LIBS+="$(NGREP_LIBS)" + NGREP_CONF_OPT = \ --with-pcap-includes=$(STAGING_DIR)/usr/include \ --enable-pcre \ |