CMakeLists.txt: add -mmitigate-rop to security flags if found

This is GCC/x86/x86_64 only
pull/88/head
moneromooo-monero 6 years ago committed by wowario
parent 7605881b73
commit 8bbef9d942
No known key found for this signature in database
GPG Key ID: 24DCBE762DE9C111

@ -562,6 +562,9 @@ else()
add_c_flag_if_supported(-fstack-protector-strong C_SECURITY_FLAGS)
add_cxx_flag_if_supported(-fstack-protector-strong CXX_SECURITY_FLAGS)
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

Loading…
Cancel
Save