From 103b6db717e505fd2c0b9db51d5f7434605d4d93 Mon Sep 17 00:00:00 2001 From: EinMByte Date: Fri, 21 Aug 2015 22:50:19 +0200 Subject: [PATCH] Better hardening flags. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f13f4d12..16a29d8c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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")