configure: Force pie for Android.
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>
Wed, 25 Jul 2018 18:43:02 +0000 (20:43 +0200)
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>
Wed, 25 Jul 2018 18:43:02 +0000 (20:43 +0200)
Position-independent executables are required since Lollipop.

Reported-by: Mohammed Bey Ahmed Khernache
configure

index 741f56d..d509f74 100755 (executable)
--- 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)'