From e6643fbf48afccd0acedb65fbe24d3ce84d44c40 Mon Sep 17 00:00:00 2001 From: Björn Jacke Date: Tue, 30 Oct 2012 13:00:58 +0100 Subject: wafbuild: use -Wstack-protector if available MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Autobuild-User(master): Björn Jacke Autobuild-Date(master): Tue Oct 30 15:04:30 CET 2012 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 9a6be208de..9dfa985aec 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(['-Wstack-protector']): + conf.ADD_CFLAGS('-Wstack-protector') + # Try to find the right extra flags for -Werror behaviour for f in ["-Werror", # GCC "-errwarn=%all", # Sun Studio -- cgit