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")