board/csky: fixup gdb instructions in readme.txt
[buildroot-gz.git] / package / aircrack-ng / 0002-Optionally-use-LIBPCAP-for-required-libpcap-libraries.patch
blobc92bb8df89fd1df34a8996f748bd26aab233b569
1 From 1abf7a6aad3d7931de2c01b578f62986b75de2f5 Mon Sep 17 00:00:00 2001
2 From: Gustavo Zacarias <gustavo@zacarias.com.ar>
3 Date: Tue, 11 Nov 2014 16:23:42 -0300
4 Subject: [PATCH] Optionally use LIBPCAP for required libpcap libraries
6 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
7 ---
8 Status: Reported http://trac.aircrack-ng.org/ticket/1528
10 diff --git a/src/Makefile b/src/Makefile
11 index 14350b6..7bd4271 100644
12 --- a/src/Makefile
13 +++ b/src/Makefile
14 @@ -23,6 +23,7 @@ ifneq ($(OSNAME), cygwin) #There is yet no libpcap support for windows, so we sk
15 HAVE_PCAP = $(shell ld -lpcap 2> /dev/null && echo yes)
16 ifeq ($(HAVE_PCAP), yes) #cannot link with -lpcap, skip crawler
17 BINFILES += besside-ng-crawler$(EXE)
18 + LIBPCAP = -lpcap
19 endif
20 endif
22 @@ -168,7 +169,7 @@ besside-ng$(EXE): $(OBJS_BS) $(LIBOSD)
23 $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS_BS) -o $(@) $(LIBS) $(LIBSSL) -lz $(LIBPCRE)
25 besside-ng-crawler$(EXE): $(OBJS_BC)
26 - $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS_BC) -o $(@) -lpcap
27 + $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS_BC) -o $(@) $(LIBPCAP)
29 makeivs-ng$(EXE): $(OBJS_MI)
30 $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS_MI) -o $(@) $(LDFLAGS)
31 --
32 2.0.4