configure: Force pie for Android.

Position-independent executables are required since Lollipop.

Reported-by: Mohammed Bey Ahmed Khernache
This commit is contained in:
Carl Eugen Hoyos 2018-07-25 20:43:02 +02:00
parent 81a18f219e
commit d01d46ad86
1 changed files with 2 additions and 0 deletions

2
configure vendored
View File

@ -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)'