1From 682a9eabc71c2e33ebbbba2e75d0ba7caa08c7c8 Mon Sep 17 00:00:00 2001
2From: Bernd Kuhls <bernd.kuhls@t-online.de>
3Date: Mon, 8 May 2023 20:03:22 +0200
4Subject: [PATCH] Don't force -fstack-protector
5
6This allows the environment to decide whether SSP should be used or
7not, for example to support toolchains that don't have SSP support.
8
9Upstream: Not applicable
10
11Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
12---
13 cmake/CompileOptions.cmake | 3 ---
14 1 file changed, 3 deletions(-)
15
16diff --git a/cmake/CompileOptions.cmake b/cmake/CompileOptions.cmake
17index 9923f1c..5b24622 100644
18--- a/cmake/CompileOptions.cmake
19+++ b/cmake/CompileOptions.cmake
20@@ -54,9 +54,6 @@ else()
21       add_definitions("-D_FORTIFY_SOURCE=2")
22     endif()
23   endif()
24-  if(NOT MINGW)
25-    add_compile_options("-fstack-protector-strong")
26-  endif()
27   if(NOT MINGW)
28     add_link_options("-Wl,-z,relro,-z,now,-z,noexecstack")
29   endif()
30--
312.39.2
32
33