From d01d46ad860c526e2bde9bcaca28a3592787848d Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Wed, 25 Jul 2018 20:43:02 +0200 Subject: [PATCH] configure: Force pie for Android. Position-independent executables are required since Lollipop. Reported-by: Mohammed Bey Ahmed Khernache --- 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)'