aboutsummaryrefslogtreecommitdiff
path: root/package/aircrack-ng/0001-stack-protector.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/aircrack-ng/0001-stack-protector.patch')
-rw-r--r--package/aircrack-ng/0001-stack-protector.patch58
1 files changed, 58 insertions, 0 deletions
diff --git a/package/aircrack-ng/0001-stack-protector.patch b/package/aircrack-ng/0001-stack-protector.patch
new file mode 100644
index 0000000000..5f2bd1b18f
--- /dev/null
+++ b/package/aircrack-ng/0001-stack-protector.patch
@@ -0,0 +1,58 @@
+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
+