mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
configure: Split adding of CFLAGS and CPPFLAGS for hardened toolchain
This commit is contained in:
parent
00431bf874
commit
2d589273dd
5
configure
vendored
5
configure
vendored
@ -2553,8 +2553,9 @@ case "$toolchain" in
|
||||
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
|
||||
add_cppflags -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2
|
||||
add_cflags -fno-strict-overflow -fstack-protector-all
|
||||
add_ldflags -Wl,-z,relro -Wl,-z,now
|
||||
;;
|
||||
?*)
|
||||
die "Unknown toolchain $toolchain"
|
||||
|
Loading…
x
Reference in New Issue
Block a user