![Bernd Kuhls](/assets/img/avatar_default.png)
Removed patches applied upstream: 0001-Makefile-use-pkg-config-to-find-libpcre-it-s-more-cros.patch http://trac.aircrack-ng.org/changeset/2445 0002-Optionally-use-LIBPCAP-for-required-libpcap-libraries.patch http://trac.aircrack-ng.org/changeset/2446 0003-Wesside-ng-Use-termios-instead-of-sys-termios.patch http://trac.aircrack-ng.org/changeset/2533 Added option to disable stack-protector support auto-detection in gcc. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
59 lines
1.4 KiB
Diff
59 lines
1.4 KiB
Diff
Added option to disable stack-protector support auto-detection in gcc.
|
|
|
|
Downloaded from upstream commit:
|
|
http://trac.aircrack-ng.org/changeset/2889/
|
|
|
|
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
|
|
|
Index: /trunk/INSTALLING
|
|
===================================================================
|
|
--- trunk/INSTALLING (revision 2888)
|
|
+++ trunk/INSTALLING (revision 2889)
|
|
@@ -83,4 +83,6 @@
|
|
* macport: Set this flag to true to compile on OS X with macports.
|
|
|
|
+* stackprotector: Allows to enable/disable auto-detection of stack-protector support in gcc
|
|
+
|
|
Example:
|
|
|
|
Index: /trunk/common.mak
|
|
===================================================================
|
|
--- trunk/common.mak (revision 2888)
|
|
+++ trunk/common.mak (revision 2889)
|
|
@@ -64,4 +64,13 @@
|
|
ifeq ($(PCRE), true)
|
|
COMMON_CFLAGS += $(shell $(PKG_CONFIG) --cflags libpcre) -DHAVE_PCRE
|
|
+endif
|
|
+
|
|
+STACK_PROTECTOR = true
|
|
+ifeq ($(stackprotector), false)
|
|
+ STACK_PROTECTOR = false
|
|
+endif
|
|
+
|
|
+ifeq ($(STACKPROTECTOR), false)
|
|
+ STACK_PROTECTOR = false
|
|
endif
|
|
|
|
@@ -235,12 +244,14 @@
|
|
endif
|
|
|
|
-ifeq ($(GCC_OVER49), 0)
|
|
- ifeq ($(GCC_OVER41), 1)
|
|
- COMMON_CFLAGS += -fstack-protector
|
|
+ifeq ($(STACK_PROTECTOR), true)
|
|
+ ifeq ($(GCC_OVER49), 0)
|
|
+ ifeq ($(GCC_OVER41), 1)
|
|
+ COMMON_CFLAGS += -fstack-protector
|
|
+ endif
|
|
endif
|
|
-endif
|
|
-
|
|
-ifeq ($(GCC_OVER49), 1)
|
|
- COMMON_CFLAGS += -fstack-protector-strong
|
|
+
|
|
+ ifeq ($(GCC_OVER49), 1)
|
|
+ COMMON_CFLAGS += -fstack-protector-strong
|
|
+ endif
|
|
endif
|
|
|