libtraceevent/0001-fix-missing-fstack-protector-strong.patch
cherry530 3c7d99fbbb Add -fstack-protector-stroong compile options
Signed-off-by: cherry530 <xuping33@huawei.com>
(cherry picked from commit a53b9562c12d55fcd960531acbb455baab805bd6)
2022-12-08 16:00:17 +08:00

27 lines
687 B
Diff

diff --git a/Makefile b/Makefile
index 089b621..3665e0f 100644
--- a/Makefile
+++ b/Makefile
@@ -113,7 +113,7 @@ INCLUDES = -I. -I $(srctree)/include $(CONFIG_INCLUDES)
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 b60352d..d5744a9 100644
--- a/plugins/Makefile
+++ b/plugins/Makefile
@@ -75,7 +75,7 @@ INCLUDES = -I. -I.. -I../src -I $(srctree)/include $(CONFIG_INCLUDES)
ifdef EXTRA_CFLAGS
CFLAGS := $(EXTRA_CFLAGS)
else
- CFLAGS := -g -Wall
+ CFLAGS := -g -Wall -fstack-protector-strong
endif
# Append required CFLAGS