Use the strong version of the -fstack-protector flag.

This commit is contained in:
Username404-59 2021-03-09 22:29:46 +01:00
parent 86090f1a7d
commit 6eb29bfa6f
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ set(CMAKE_CXX_FLAGS_RELEASE "-Os")
if((${CMAKE_CXX_COMPILER_ID} STREQUAL GNU) OR (${CMAKE_CXX_COMPILER_ID} STREQUAL Clang))
set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc")
set(CMAKE_CXX_FLAGS "-flto ${CMAKE_CXX_FLAGS} -fpie -pipe -fstack-protector -fstack-clash-protection")
set(CMAKE_CXX_FLAGS "-flto ${CMAKE_CXX_FLAGS} -fpie -pipe -fstack-protector-strong -fstack-clash-protection")
endif()
if (${CMAKE_CXX_COMPILER_ID} STREQUAL GNU)