mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
CMakeLists.txt: detect -fcf-protection=full and -fstack-clash-protection
Introduced with GCC 8.2
This commit is contained in:
parent
fad88e18a9
commit
347bba9dd1
1 changed files with 8 additions and 0 deletions
|
@ -570,6 +570,14 @@ else()
|
||||||
add_cxx_flag_if_supported(-fstack-protector-strong CXX_SECURITY_FLAGS)
|
add_cxx_flag_if_supported(-fstack-protector-strong CXX_SECURITY_FLAGS)
|
||||||
endif()
|
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
|
# linker
|
||||||
if (NOT WIN32)
|
if (NOT WIN32)
|
||||||
# Windows binaries die on startup with PIE
|
# Windows binaries die on startup with PIE
|
||||||
|
|
Loading…
Reference in a new issue