[FFmpeg-cvslog] configure: Enable pie for toolchain=hardened.

Carl Eugen Hoyos git at videolan.org
Fri Oct 14 15:58:56 EEST 2016


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Tue Oct  4 12:21:41 2016 +0200| [a2c5f5aacf9d1e53602864cde21ab3c8b730a617] | committer: Carl Eugen Hoyos

configure: Enable pie for toolchain=hardened.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a2c5f5aacf9d1e53602864cde21ab3c8b730a617
---

 configure | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/configure b/configure
index 8db46c5..96f575f 100755
--- a/configure
+++ b/configure
@@ -3575,6 +3575,8 @@ case "$toolchain" in
         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
+        add_cflags   -fPIE
+        add_ldexeflags -fPIE -pie
     ;;
     ?*)
         die "Unknown toolchain $toolchain"



More information about the ffmpeg-cvslog mailing list