1 Added option to disable stack-protector support auto-detection in gcc.
3 Downloaded from upstream commit:
4 http://trac.aircrack-ng.org/changeset/2889/
6 Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
8 Index: /trunk/INSTALLING
9 ===================================================================
10 --- trunk/INSTALLING (revision 2888)
11 +++ trunk/INSTALLING (revision 2889)
13 * macport: Set this flag to true to compile on OS X with macports.
15 +* stackprotector: Allows to enable/disable auto-detection of stack-protector support in gcc
19 Index: /trunk/common.mak
20 ===================================================================
21 --- trunk/common.mak (revision 2888)
22 +++ trunk/common.mak (revision 2889)
25 COMMON_CFLAGS += $(shell $(PKG_CONFIG) --cflags libpcre) -DHAVE_PCRE
28 +STACK_PROTECTOR = true
29 +ifeq ($(stackprotector), false)
30 + STACK_PROTECTOR = false
33 +ifeq ($(STACKPROTECTOR), false)
34 + STACK_PROTECTOR = false
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
51 -ifeq ($(GCC_OVER49), 1)
52 - COMMON_CFLAGS += -fstack-protector-strong
54 + ifeq ($(GCC_OVER49), 1)
55 + COMMON_CFLAGS += -fstack-protector-strong