summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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