• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/aircrack-ng/0001-Makefile-use-pkg-config-to-find-libpcre-it-s-more-cros.patch
Gustavo ZacariasGustavo Zacarias committed 22b0c44eb6b11 Nov 2014
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
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
​
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.