aboutsummaryrefslogtreecommitdiff
path: root/tools/depends
diff options
context:
space:
mode:
authorChris Koying Browet <cbro@semperpax.com>2016-07-08 16:45:15 +0200
committerChris "Koying" Browet <cbro@semperpax.com>2017-03-19 15:58:26 +0100
commit713b1f40e4f7f5efee67986f01694def5d246126 (patch)
tree670d1f07c6a640c970867f00ebc0275704ff2bea /tools/depends
parent4912f8f868e0847a8a26158e18185c43c2f0e197 (diff)
FIX: [droid] force PIC (text reloc denied as of API 23)
Diffstat (limited to 'tools/depends')
-rw-r--r--tools/depends/configure.ac6
-rw-r--r--tools/depends/target/gmp/Makefile3
2 files changed, 6 insertions, 3 deletions
diff --git a/tools/depends/configure.ac b/tools/depends/configure.ac
index c5fafc02f5..82c126cfed 100644
--- a/tools/depends/configure.ac
+++ b/tools/depends/configure.ac
@@ -162,7 +162,7 @@ case $host in
fi
use_sdk="${use_sdk:-android-21}"
deps_dir="$use_host-$use_sdk-$build_type"
- platform_cflags="-DANDROID -fexceptions"
+ platform_cflags="-DANDROID -fexceptions -fPIC -DPIC"
optimize_flags="-Os"
if test "x$use_cpu" = "xarmeabi-v7a"; then
platform_cflags+=" -march=armv7-a -mtune=cortex-a9 -mfloat-abi=softfp -mfpu=neon"
@@ -180,7 +180,7 @@ case $host in
fi
use_sdk="${use_sdk:-android-21}"
deps_dir="$use_host-$use_sdk-$build_type"
- platform_cflags="-DANDROID -fexceptions"
+ platform_cflags="-DANDROID -fexceptions -fPIC -DPIC"
optimize_flags="-Os"
if test "x$use_cpu" = "xarm64-v8a"; then
platform_cflags+=" -march=armv8-a -mtune=cortex-a53"
@@ -198,7 +198,7 @@ case $host in
fi
use_sdk="${use_sdk:-android-21}"
deps_dir="$use_host-$use_sdk-$build_type"
- platform_cflags="-DANDROID -fexceptions"
+ platform_cflags="-DANDROID -fexceptions -fPIC -DPIC"
optimize_flags="-Os"
platform_ldflags="-L$prefix/$deps_dir/lib/$use_sdk"
platform_cxxflags="$platform_cflags -frtti"
diff --git a/tools/depends/target/gmp/Makefile b/tools/depends/target/gmp/Makefile
index 47653bd179..b8f44faf6e 100644
--- a/tools/depends/target/gmp/Makefile
+++ b/tools/depends/target/gmp/Makefile
@@ -24,6 +24,9 @@ endif
ifeq ($(OS),osx)
CONFIGURE_FLAGS=--with-pic
endif
+ifeq ($(OS), android)
+CONFIGURE_FLAGS=--with-pic
+endif
# configuration settings
CONFIGURE=cp -f $(CONFIG_SUB) $(CONFIG_GUESS) .; \