From 240a55249d00c1e73400b480d4bc924edae94022 Mon Sep 17 00:00:00 2001 From: Björn Jacke Date: Tue, 19 Feb 2013 19:09:25 +0100 Subject: build: use -fstack-protector if available MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Bjoern Jacke Reviewed-by: Matthieu Patou Autobuild-User(master): Björn Jacke Autobuild-Date(master): Fri Feb 22 15:38:21 CET 2013 on sn-devel-104 --- lib/replace/wscript | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/replace') diff --git a/lib/replace/wscript b/lib/replace/wscript index 266ca47d4c..47735be9e6 100644 --- a/lib/replace/wscript +++ b/lib/replace/wscript @@ -53,6 +53,9 @@ struct foo bar = { .y = 'X', .x = 1 }; conf.ADD_CFLAGS(f) break + if conf.CHECK_CFLAGS(['-fstack-protector']): + conf.ADD_CFLAGS('-fstack-protector') + # Try to find the right extra flags for -Werror behaviour for f in ["-Werror", # GCC "-errwarn=%all", # Sun Studio -- cgit