From e6643fbf48afccd0acedb65fbe24d3ce84d44c40 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B6rn=20Jacke?= Date: Tue, 30 Oct 2012 13:00:58 +0100 Subject: [PATCH] wafbuild: use -Wstack-protector if available MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 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(+) diff --git a/lib/replace/wscript b/lib/replace/wscript index 9a6be208de7..9dfa985aec9 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 -- 2.11.4.GIT