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