aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2013-10-28 13:22:52 +0100
committerLuca Barbato <lu_zero@gentoo.org>2013-10-29 11:36:00 +0100
commite78913052263af80855590659fb0f705e8f13c8a (patch)
tree81b72f5d585ed514342040630746f4bcf12ffda6 /configure
parentdcd3eda6cb8884beeb67ef5eb61b4bb6b01d29ea (diff)
downloadffmpeg-e78913052263af80855590659fb0f705e8f13c8a.tar.gz
configure: Provide an hardened toolchain option
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure b/configure
index 34a3650188..ebd21b2108 100755
--- a/configure
+++ b/configure
@@ -2288,6 +2288,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"
;;