From a336377ef4a2efb2d54cee58a18b5cdc7caf0b77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Gardou?= Date: Tue, 21 Oct 2014 10:45:36 +0000 Subject: [PATCH] [CMAKE] - link keyboard layout modules to gcc_ssp if the stack protector is enabled. svn path=/trunk/; revision=64861 --- reactos/dll/keyboard/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/reactos/dll/keyboard/CMakeLists.txt b/reactos/dll/keyboard/CMakeLists.txt index 9190fd8f4b5..3f931264200 100644 --- a/reactos/dll/keyboard/CMakeLists.txt +++ b/reactos/dll/keyboard/CMakeLists.txt @@ -102,6 +102,10 @@ foreach(_keyboard_layout ${_keyboard_layouts}) add_target_link_flags(${_keyboard_layout} "-Wl,-T,${CMAKE_SOURCE_DIR}/kbdlayout.lds") endif() + if (STACK_PROTECTOR) + target_link_libraries(${_keyboard_layout} gcc_ssp) + endif() + if(RUNTIME_CHECKS) target_link_libraries(${_keyboard_layout} runtmchk) endif()