summaryrefslogtreecommitdiff
path: root/lib/replace/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'lib/replace/wscript')
-rw-r--r--lib/replace/wscript3
1 files changed, 3 insertions, 0 deletions
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