Disable stack protection for mingw win32 builds in 2.4

Mingw builds could have it enabled! But we need to ship libssp and test
this more. For the upcoming 2.4 release it should be disabled.
This commit is contained in:
Christian Kamm 2017-12-15 09:16:59 +01:00
parent 79dd8e9074
commit 298f1ab570

View file

@ -8,7 +8,7 @@ if(NOT TOKEN_AUTH_ONLY)
find_package(Qt5Keychain REQUIRED) find_package(Qt5Keychain REQUIRED)
endif() endif()
if(NOT MSVC) if(NOT WIN32)
if(NOT (CMAKE_SYSTEM_PROCESSOR MATCHES "^(parisc|hppa)")) if(NOT (CMAKE_SYSTEM_PROCESSOR MATCHES "^(parisc|hppa)"))
if((CMAKE_CXX_COMPILER_ID MATCHES "GNU") AND (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.9)) if((CMAKE_CXX_COMPILER_ID MATCHES "GNU") AND (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.9))
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fstack-protector --param=ssp-buffer-size=4") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fstack-protector --param=ssp-buffer-size=4")