0001-Don-t-force-fstack-protector.patch 930 B

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