aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>2018-07-25 20:43:02 +0200
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>2018-07-25 20:43:02 +0200
commitd01d46ad860c526e2bde9bcaca28a3592787848d (patch)
tree170266eaf49766107e99ca19c7333df06a2414d0
parent81a18f219e2ca0ec57144805dece1b72b73c692d (diff)
downloadffmpeg-d01d46ad860c526e2bde9bcaca28a3592787848d.tar.gz
configure: Force pie for Android.
Position-independent executables are required since Lollipop. Reported-by: Mohammed Bey Ahmed Khernache
-rwxr-xr-xconfigure2
1 files changed, 2 insertions, 0 deletions
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)'