From 7fa4795607f018590caa26b5eca5abb68922c039 Mon Sep 17 00:00:00 2001 From: Ira Cooper Date: Wed, 6 Mar 2013 00:54:43 +0000 Subject: waf: add -fstack-protector to LDFLAGS if detected. If we compile with -fstack-protector, we should link with it. Reviewed-by: Andrew Bartlett Autobuild-User(master): Andrew Bartlett Autobuild-Date(master): Wed Mar 6 04:06:04 CET 2013 on sn-devel-104 --- lib/replace/wscript | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/replace') diff --git a/lib/replace/wscript b/lib/replace/wscript index 36a9f6a366..9483e23089 100644 --- a/lib/replace/wscript +++ b/lib/replace/wscript @@ -55,6 +55,7 @@ struct foo bar = { .y = 'X', .x = 1 }; if conf.CHECK_CFLAGS(['-fstack-protector']): conf.ADD_CFLAGS('-fstack-protector') + conf.ADD_LDFLAGS('-fstack-protector') # Try to find the right extra flags for -Werror behaviour for f in ["-Werror", # GCC -- cgit