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
7 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
9 Status: Upstream http://trac.aircrack-ng.org/ticket/1526
11 diff --git a/common.mak b/common.mak
12 index 6e5694b..d875708 100644
15 @@ -39,7 +39,7 @@ PCRE = true
19 -COMMON_CFLAGS += $(shell pcre-config --cflags) -DHAVE_PCRE
20 +COMMON_CFLAGS += $(shell $(PKG_CONFIG) --cflags libpcre) -DHAVE_PCRE
23 ifeq ($(OSNAME), cygwin)
24 diff --git a/src/Makefile b/src/Makefile
25 index f9217f9..14350b6 100644
28 @@ -16,7 +16,7 @@ BINFILES = aircrack-ng$(EXE) airdecap-ng$(EXE) packetforge-ng$(EXE) \
32 - LIBPCRE = $(shell pcre-config --libs)
33 + LIBPCRE = $(shell $(PKG_CONFIG) --libs libpcre)
36 ifneq ($(OSNAME), cygwin) #There is yet no libpcap support for windows, so we skip the crawler