]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - package/aircrack-ng/0001-stack-protector.patch
lrzsz: install symlinks for XMODEM and YMODEM
[coffee/buildroot.git] / package / aircrack-ng / 0001-stack-protector.patch
1 Added option to disable stack-protector support auto-detection in gcc.
2
3 Downloaded from upstream commit:
4 http://trac.aircrack-ng.org/changeset/2889/
5
6 Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
7
8 Index: /trunk/INSTALLING
9 ===================================================================
10 --- trunk/INSTALLING    (revision 2888)
11 +++ trunk/INSTALLING    (revision 2889)
12 @@ -83,4 +83,6 @@
13  * macport:  Set this flag to true to compile on OS X with macports.
14  
15 +* stackprotector: Allows to enable/disable auto-detection of stack-protector support in gcc
16 +
17  Example:
18  
19 Index: /trunk/common.mak
20 ===================================================================
21 --- trunk/common.mak    (revision 2888)
22 +++ trunk/common.mak    (revision 2889)
23 @@ -64,4 +64,13 @@
24  ifeq ($(PCRE), true)
25  COMMON_CFLAGS += $(shell $(PKG_CONFIG) --cflags libpcre) -DHAVE_PCRE
26 +endif
27 +
28 +STACK_PROTECTOR        = true
29 +ifeq ($(stackprotector), false)
30 +       STACK_PROTECTOR = false
31 +endif
32 +
33 +ifeq ($(STACKPROTECTOR), false)
34 +       STACK_PROTECTOR = false
35  endif
36  
37 @@ -235,12 +244,14 @@
38  endif
39  
40 -ifeq ($(GCC_OVER49), 0)
41 -       ifeq ($(GCC_OVER41), 1)
42 -               COMMON_CFLAGS += -fstack-protector
43 +ifeq ($(STACK_PROTECTOR), true)
44 +       ifeq ($(GCC_OVER49), 0)
45 +               ifeq ($(GCC_OVER41), 1)
46 +                       COMMON_CFLAGS += -fstack-protector
47 +               endif
48         endif
49 -endif
50 -
51 -ifeq ($(GCC_OVER49), 1)
52 -       COMMON_CFLAGS += -fstack-protector-strong
53 +
54 +       ifeq ($(GCC_OVER49), 1)
55 +               COMMON_CFLAGS += -fstack-protector-strong
56 +       endif
57  endif
58