mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-27 01:01:07 +00:00
configure: Enable pie for toolchain=hardened.
This commit is contained in:
parent
7845c13881
commit
a2c5f5aacf
2
configure
vendored
2
configure
vendored
@ -3575,6 +3575,8 @@ case "$toolchain" in
|
|||||||
add_cppflags -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2
|
add_cppflags -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2
|
||||||
add_cflags -fno-strict-overflow -fstack-protector-all
|
add_cflags -fno-strict-overflow -fstack-protector-all
|
||||||
add_ldflags -Wl,-z,relro -Wl,-z,now
|
add_ldflags -Wl,-z,relro -Wl,-z,now
|
||||||
|
add_cflags -fPIE
|
||||||
|
add_ldexeflags -fPIE -pie
|
||||||
;;
|
;;
|
||||||
?*)
|
?*)
|
||||||
die "Unknown toolchain $toolchain"
|
die "Unknown toolchain $toolchain"
|
||||||
|
Loading…
Reference in New Issue
Block a user