From: Antonio Ospite Date: Thu, 1 Mar 2012 22:05:50 +0000 (+0100) Subject: CmakeLists.txt: add some hardening options to CMAKE_C_FLAGS X-Git-Tag: v0.1.0~1^2~24 X-Git-Url: https://git.ao2.it/libam7xxx.git/commitdiff_plain/7b0e5fd5a660782a7888917236111c0d820de19e?hp=a09eb6616f4c6c67d4de4c8b72d9072f787ad2de CmakeLists.txt: add some hardening options to CMAKE_C_FLAGS These options (-fstack-protector --param=ssp-buffer-size=4) should not affect the current code but it is useful to have them here for reference. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index be8e4e7..5d36d6c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -68,7 +68,8 @@ if (CMAKE_COMPILER_IS_GNUCC) -Wunreachable-code -Wunsafe-loop-optimizations -Wwrite-strings - ) + -fstack-protector + --param=ssp-buffer-size=4) endif() set(CMAKE_C_FLAGS_DEBUG "-g -DDEBUG=1 -Werror")