aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriDunk5400 <iDunk5400@users.noreply.github.com>2018-08-21 22:40:03 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-08-21 22:41:35 +0000
commit2bc977bab9b9a2fa97e034357606270804a3e0df (patch)
tree49655b8a9c8e49d546c80639934bef0d2554e6a0
parentMerge pull request #4191 (diff)
downloadmonero-2bc977bab9b9a2fa97e034357606270804a3e0df.tar.xz
CMakeLists.txt: disable -fstack-protector* on windows
Current GCC produces broken binaries with these options
-rw-r--r--CMakeLists.txt10
1 files changed, 6 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index cab853581..56d7d5009 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -567,10 +567,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)