Browse Source

Better hardening flags.

pull/257/head
EinMByte 9 years ago
parent
commit
103b6db717
  1. 2
      CMakeLists.txt

2
CMakeLists.txt

@ -53,7 +53,7 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") @@ -53,7 +53,7 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
)
set(
CMAKE_CXX_FLAGS
"${CMAKE_CXX_FLAGS} -fstack-protector --param ssp-buffer-size=4"
"${CMAKE_CXX_FLAGS} -fstack-protector-strong -fPIE --param ssp-buffer-size=4 -z relro -z now"
)
endif()
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")

Loading…
Cancel
Save