diff options
author | Riccardo Spagni <ric@spagni.net> | 2018-09-14 12:39:17 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2018-09-14 12:39:17 +0200 |
commit | 466f079586bf0828798465e98ceaa08bba2fd81f (patch) | |
tree | 357dd0d7868a3bbae5662933ebf4396619a6eb51 /CMakeLists.txt | |
parent | Merge pull request #4221 (diff) | |
parent | CMakeLists.txt: add -mmitigate-rop to security flags if found (diff) | |
download | monero-466f079586bf0828798465e98ceaa08bba2fd81f.tar.xz |
Merge pull request #4232
9e6c7784 CMakeLists.txt: add -mmitigate-rop to security flags if found (moneromooo-monero)
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index e4b6bfe01..84e52d41a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -578,6 +578,9 @@ else() add_cxx_flag_if_supported(-fstack-clash-protection CXX_SECURITY_FLAGS) endif() + add_c_flag_if_supported(-mmitigate-rop C_SECURITY_FLAGS) + add_cxx_flag_if_supported(-mmitigate-rop CXX_SECURITY_FLAGS) + # linker if (NOT WIN32) # Windows binaries die on startup with PIE |