summaryrefslogtreecommitdiff
path: root/0001-fix-missing-fstack-protector-strong.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-07-14 11:33:54 +0000
committerCoprDistGit <infra@openeuler.org>2024-07-14 11:33:54 +0000
commitde63818dae172a203b61347505412b75974c772b (patch)
treeac96465c4559545fc8ddf4a4015c66a11ae46074 /0001-fix-missing-fstack-protector-strong.patch
parent15900734e7cecf92514860fac58d20c8f438c397 (diff)
Diffstat (limited to '0001-fix-missing-fstack-protector-strong.patch')
-rw-r--r--0001-fix-missing-fstack-protector-strong.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/0001-fix-missing-fstack-protector-strong.patch b/0001-fix-missing-fstack-protector-strong.patch
new file mode 100644
index 0000000..37bf0fc
--- /dev/null
+++ b/0001-fix-missing-fstack-protector-strong.patch
@@ -0,0 +1,26 @@
+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