projects
/
libam7xxx.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
CmakeLists.txt: add some hardening options to CMAKE_C_FLAGS
[libam7xxx.git]
/
CMakeLists.txt
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index
be8e4e7
..
5d36d6c
100644
(file)
--- 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")