configs: atmel: at91sam9260eknf: update defconfig
[buildroot-gz.git] / package / aircrack-ng / 0001-Makefile-use-pkg-config-to-find-libpcre-it-s-more-cros.patch
blob733e0c06d261541c3e4d3f2b8193998be1292330
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
7 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
8 ---
9 Status: Upstream http://trac.aircrack-ng.org/ticket/1526
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
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
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) \
30 LIBPCRE =
31 ifeq ($(PCRE), true)
32 - LIBPCRE = $(shell pcre-config --libs)
33 + LIBPCRE = $(shell $(PKG_CONFIG) --libs libpcre)
34 endif
36 ifneq ($(OSNAME), cygwin) #There is yet no libpcap support for windows, so we skip the crawler
37 --
38 2.0.4