summaryrefslogtreecommitdiff
path: root/0001-fix-missing-fstack-protector-strong.patch
blob: ef850986e4183d0e2d44d7d8cff3b052ed4ff6c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
diff --git a/Makefile b/Makefile
index 41ad866..20ae048 100644
--- a/Makefile
+++ b/Makefile
@@ -127,7 +127,7 @@ export LIBTRACEEVENT_STATIC LIBTRACEEVENT_SHARED EP_HEADERS_DIR
 ifdef EXTRA_CFLAGS
   CFLAGS := $(EXTRA_CFLAGS)
 else
-  CFLAGS := -g -Wall
+  CFLAGS := -g -Wall -fstack-protector-strong
 endif
 
 LIBS ?= -ldl
diff --git a/plugins/Makefile b/plugins/Makefile
index 4c8cb17..56b5646 100644
--- a/plugins/Makefile
+++ b/plugins/Makefile
@@ -68,7 +68,7 @@ INCLUDES = -I. -I.. -I../src -I $(srctree)/include -I $(EP_HEADERS_DIR) $(CONFIG
 ifdef EXTRA_CFLAGS
   CFLAGS := $(EXTRA_CFLAGS)
 else
-  CFLAGS := -g -Wall
+  CFLAGS := -g -Wall -fstack-protector-strong
 endif
 
 # Append required CFLAGS