diff --git a/SConstruct b/SConstruct index 8e669f918ce..13b732193f5 100644 --- a/SConstruct +++ b/SConstruct @@ -872,6 +872,8 @@ if nix: if debugBuild: if not optBuild: env.Append( CCFLAGS=["-fstack-protector"] ) + env.Append( LINKFLAGS=["-fstack-protector"] ) + env.Append( SHLINKFLAGS=["-fstack-protector"] ) env['ENV']['GLIBCXX_FORCE_NEW'] = 1; # play nice with valgrind env.Append( CPPDEFINES=["_DEBUG"] );