projects
/
libam7xxx.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a09eb66
)
CmakeLists.txt: add some hardening options to CMAKE_C_FLAGS
author
Antonio Ospite <ospite@studenti.unina.it>
Thu, 1 Mar 2012 22:05:50 +0000
(23:05 +0100)
committer
Antonio Ospite <ospite@studenti.unina.it>
Thu, 1 Mar 2012 22:11:56 +0000
(23:11 +0100)
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.
CMakeLists.txt
patch
|
blob
|
history
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")