Merge commit 'e78913052263af80855590659fb0f705e8f13c8a'

* commit 'e78913052263af80855590659fb0f705e8f13c8a':
  configure: Provide an hardened toolchain option

Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-10-29 19:48:08 +01:00
commit 6c5f17e738
1 changed files with 4 additions and 0 deletions

4
configure vendored
View File

@ -2633,6 +2633,10 @@ case "$toolchain" in
add_cflags -fprofile-arcs -ftest-coverage add_cflags -fprofile-arcs -ftest-coverage
add_ldflags -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" die "Unknown toolchain $toolchain"
;; ;;