COMPMID-417: Add -fstack-protector-strong flag

The compiler seems to perform some "illegal" optimisations regarding the
stack pointer which cause valgrind to report invalid writes. (Or it
could be a compiler bug). Compiling with -fstack-protector-strong
generates "correct" code and thus allows to use valgrind.

Change-Id: I841dc839b5edb49f6f27acc1b3904671294476fc
Reviewed-on: http://mpd-gerrit.cambridge.arm.com/87719
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
diff --git a/SConstruct b/SConstruct
index cb08c89..b46f775 100644
--- a/SConstruct
+++ b/SConstruct
@@ -201,6 +201,7 @@
 
 if env['asserts']:
     env.Append(CPPDEFINES = ['ARM_COMPUTE_ASSERTS_ENABLED'])
+    env.Append(CXXFLAGS = ['-fstack-protector-strong'])
 
 env.Append(CPPPATH = ['#/include', "#"])
 env.Append(CXXFLAGS = env['extra_cxx_flags'])