aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-09-05 13:19:25 +0200
committerFelix Morgner <felix.morgner@ost.ch>2026-09-05 13:19:25 +0200
commit9f544dea5dbcdb92f614c6092a60e81d3398b8da (patch)
tree2a7098a472b7ef45092c830850b1625492fa04f3 /CMakeLists.txt
parentc0b2173d6b6c4587d1df3e8ea992ee19c9ff4418 (diff)
downloadkernel-9f544dea5dbcdb92f614c6092a60e81d3398b8da.tar.xz
kernel-9f544dea5dbcdb92f614c6092a60e81d3398b8da.zip
build: enable strong stack protector
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 34738e18..8f622050 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -76,6 +76,7 @@ add_compile_options(
"$<$<CXX_COMPILER_ID:GNU>:-Wextra>"
"$<$<CXX_COMPILER_ID:GNU>:-Werror>"
"$<$<CXX_COMPILER_ID:GNU>:-pedantic-errors>"
+ "$<$<CXX_COMPILER_ID:GNU>:-fstack-protector-strong>"
)
if(NOT BUILD_TESTING)