Commit 6c5f17e7 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'e7891305'

* commit 'e7891305':
  configure: Provide an hardened toolchain option
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents df69af4e e7891305
......@@ -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"
;;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment