[FFmpeg-cvslog] configure: Force pie for Android.
Carl Eugen Hoyos
git at videolan.org
Wed Jul 25 21:43:21 EEST 2018
ffmpeg | branch: master | Carl Eugen Hoyos <ceffmpeg at gmail.com> | Wed Jul 25 20:43:02 2018 +0200| [d01d46ad860c526e2bde9bcaca28a3592787848d] | committer: Carl Eugen Hoyos
configure: Force pie for Android.
Position-independent executables are required since Lollipop.
Reported-by: Mohammed Bey Ahmed Khernache
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d01d46ad860c526e2bde9bcaca28a3592787848d
---
configure | 2 ++
1 file changed, 2 insertions(+)
diff --git a/configure b/configure
index 741f56d565..d509f74e1a 100755
--- a/configure
+++ b/configure
@@ -5049,6 +5049,8 @@ case $target_os in
android)
disable symver
enable section_data_rel_ro
+ add_cflags -fPIE
+ add_ldexeflags -fPIE -pie
SLIB_INSTALL_NAME='$(SLIBNAME)'
SLIB_INSTALL_LINKS=
SHFLAGS='-shared -Wl,-soname,$(SLIBNAME)'
More information about the ffmpeg-cvslog
mailing list