From 432ca8bc789b2d41353726dd87f4f656c7499627 Mon Sep 17 00:00:00 2001 From: Robin Hack Date: Thu, 19 Sep 2013 07:50:55 +0200 Subject: Providers: Added -fstack-protector gcc flag. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index d3184e9..447be1f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,7 +10,7 @@ cmake_minimum_required(VERSION 2.6) # Set flags and definitions add_definitions(-D_XOPEN_SOURCE=500 -D_GNU_SOURCE) -set(CMAKE_C_FLAGS "-std=c99 -Wall -pedantic -g -Wextra -Wno-unused-parameter -Wformat -Wparentheses -Wl,--no-undefined ${CMAKE_C_FLAGS}") +set(CMAKE_C_FLAGS "-std=c99 -fstack-protector -Wall -pedantic -g -Wextra -Wno-unused-parameter -Wformat -Wparentheses -Wl,--no-undefined ${CMAKE_C_FLAGS}") # Set LIB_SUFFIX to 64 on 64bit architectures if(CMAKE_SIZEOF_VOID_P EQUAL 4) -- cgit