Merge commit 'e78913052263af80855590659fb0f705e8f13c8a'
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 29 Oct 2013 18:48:08 +0000 (19:48 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 29 Oct 2013 18:50:03 +0000 (19:50 +0100)
* commit 'e78913052263af80855590659fb0f705e8f13c8a':
  configure: Provide an hardened toolchain option

Merged-by: Michael Niedermayer <michaelni@gmx.at>
configure

index 0fb6ce8..af322f5 100755 (executable)
--- a/configure
+++ b/configure
@@ -2633,6 +2633,10 @@ case "$toolchain" in
         add_cflags  -fprofile-arcs -ftest-coverage
         add_ldflags -fprofile-arcs -ftest-coverage
     ;;
+    hardened)
+        add_cflags -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all
+        add_ldflags -Wl,-z,relro -Wl,-z,now
+    ;;
     ?*)
         die "Unknown toolchain $toolchain"
     ;;