mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
configure: Provide an hardened toolchain option
This commit is contained in:
parent
dcd3eda6cb
commit
e789130522
4
configure
vendored
4
configure
vendored
@ -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"
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user