1
mirror of https://github.com/monero-project/monero synced 2024-11-19 20:36:50 +01:00

Merge pull request #4290

2bc977b CMakeLists.txt: disable -fstack-protector* on windows
This commit is contained in:
luigi1111 2018-09-04 18:12:52 -05:00
commit fad88e18a9
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010

View File

@ -563,10 +563,12 @@ else()
add_cxx_flag_if_supported(-Wformat-security CXX_SECURITY_FLAGS)
# -fstack-protector
add_c_flag_if_supported(-fstack-protector C_SECURITY_FLAGS)
add_cxx_flag_if_supported(-fstack-protector CXX_SECURITY_FLAGS)
add_c_flag_if_supported(-fstack-protector-strong C_SECURITY_FLAGS)
add_cxx_flag_if_supported(-fstack-protector-strong CXX_SECURITY_FLAGS)
if (NOT WIN32)
add_c_flag_if_supported(-fstack-protector C_SECURITY_FLAGS)
add_cxx_flag_if_supported(-fstack-protector CXX_SECURITY_FLAGS)
add_c_flag_if_supported(-fstack-protector-strong C_SECURITY_FLAGS)
add_cxx_flag_if_supported(-fstack-protector-strong CXX_SECURITY_FLAGS)
endif()
# linker
if (NOT WIN32)