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 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