The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / aircrack-ng / 0001-Makefile-use-pkg-config-to-find-libpcre-it-s-more-cros.patch
1 From 98149c7664e99cc8ce9c9b1abf2fa90d9cd68e0d Mon Sep 17 00:00:00 2001
2 From: Gustavo Zacarias <gustavo@zacarias.com.ar>
3 Date: Wed, 5 Nov 2014 09:38:12 -0300
4 Subject: [PATCH] Makefile: use pkg-config to find libpcre, it's more
5  cross-compile friendly
6
7 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
8 ---
9 Status: Upstream http://trac.aircrack-ng.org/ticket/1526
10
11 diff --git a/common.mak b/common.mak
12 index 6e5694b..d875708 100644
13 --- a/common.mak
14 +++ b/common.mak
15 @@ -39,7 +39,7 @@ PCRE            = true
16  endif
17  
18  ifeq ($(PCRE), true)
19 -COMMON_CFLAGS += $(shell pcre-config --cflags) -DHAVE_PCRE
20 +COMMON_CFLAGS += $(shell $(PKG_CONFIG) --cflags libpcre) -DHAVE_PCRE
21  endif
22  
23  ifeq ($(OSNAME), cygwin)
24 diff --git a/src/Makefile b/src/Makefile
25 index f9217f9..14350b6 100644
26 --- a/src/Makefile
27 +++ b/src/Makefile
28 @@ -16,7 +16,7 @@ BINFILES        = aircrack-ng$(EXE) airdecap-ng$(EXE) packetforge-ng$(EXE) \
29  
30  LIBPCRE                =
31  ifeq ($(PCRE), true)
32 -       LIBPCRE = $(shell pcre-config --libs)
33 +       LIBPCRE = $(shell $(PKG_CONFIG) --libs libpcre)
34  endif
35  
36  ifneq ($(OSNAME), cygwin) #There is yet no libpcap support for windows, so we skip the crawler
37 -- 
38 2.0.4
39