Hi!

A user pointed out that Android requires pie since Lollipop.

Please comment, Carl Eugen
From eb04227c4c2cee59b257b2ef91316d0c674575bf Mon Sep 17 00:00:00 2001
From: Carl Eugen Hoyos <ceffm...@gmail.com>
Date: Fri, 13 Jul 2018 20:46:18 +0200
Subject: [PATCH] configure: Force pie for Android.

Position-independet executable are requried since Lollipop.
---
 configure |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/configure b/configure
index b1a4dcf..4592839 100755
--- a/configure
+++ b/configure
@@ -5045,6 +5045,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)'
-- 
1.7.10.4

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to