diff options
| author | Riccardo Spagni <ric@spagni.net> | 2018-09-14 12:20:32 +0200 |
|---|---|---|
| committer | Riccardo Spagni <ric@spagni.net> | 2018-09-14 12:20:32 +0200 |
| commit | e8049be955e8a5e5bc355ed1a8cb62768e9ce5f1 (patch) | |
| tree | 221886386e24cd228942d35c58ea23599a3bf8e6 | |
| parent | 5fe6aa19f6e32a5f14248b4d6257c94000180c69 (diff) | |
| parent | 347bba9dd15fff187d23830940cc317aa58519d3 (diff) | |
| download | monzero-core-e8049be955e8a5e5bc355ed1a8cb62768e9ce5f1.tar.gz monzero-core-e8049be955e8a5e5bc355ed1a8cb62768e9ce5f1.tar.xz monzero-core-e8049be955e8a5e5bc355ed1a8cb62768e9ce5f1.zip | |
Merge pull request #4178
347bba9d CMakeLists.txt: detect -fcf-protection=full and -fstack-clash-protection (moneromooo-monero)
| -rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index a02f62e62..e4b6bfe01 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -570,6 +570,14 @@ else() add_cxx_flag_if_supported(-fstack-protector-strong CXX_SECURITY_FLAGS) endif() + # New in GCC 8.2 + if (NOT WIN32) + add_c_flag_if_supported(-fcf-protection=full C_SECURITY_FLAGS) + add_cxx_flag_if_supported(-fcf-protection=full CXX_SECURITY_FLAGS) + add_c_flag_if_supported(-fstack-clash-protection C_SECURITY_FLAGS) + add_cxx_flag_if_supported(-fstack-clash-protection CXX_SECURITY_FLAGS) + endif() + # linker if (NOT WIN32) # Windows binaries die on startup with PIE |
