aboutsummaryrefslogtreecommitdiff
path: root/depends/hosts/android.mk
diff options
context:
space:
mode:
authorBlock Mechanic <blockmecha@gmail.com>2019-10-18 22:03:51 +0200
committerIgor Cota <igor@codexapertus.com>2019-10-18 22:24:21 +0200
commitf9af3ced1c69d65c5c530ec5526f5eefaf786126 (patch)
tree0ac3898a55bfa71e69a1ea8cadceb5e3eb8b6987 /depends/hosts/android.mk
parentd419ca7e32bfc71e8dd1f1b91870463eacd6ad8e (diff)
Android: add all arch support
Add support for armv7a, i686 and x86_64 archs to android.mk Add -fPIC to depends file as anddroid requires it see https://stackoverflow.com/questions/30498776/position-independent-executables-and-android
Diffstat (limited to 'depends/hosts/android.mk')
-rw-r--r--depends/hosts/android.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/depends/hosts/android.mk b/depends/hosts/android.mk
index c2a30d7a4d..969ec2a1cb 100644
--- a/depends/hosts/android.mk
+++ b/depends/hosts/android.mk
@@ -1,4 +1,11 @@
+ifeq ($(HOST),armv7a-linux-android)
+android_AR=$(ANDROID_TOOLCHAIN_BIN)/arm-linux-androideabi-ar
+android_CXX=$(ANDROID_TOOLCHAIN_BIN)/$(HOST)eabi$(ANDROID_API_LEVEL)-clang++
+android_CC=$(ANDROID_TOOLCHAIN_BIN)/$(HOST)eabi$(ANDROID_API_LEVEL)-clang
+android_RANLIB=$(ANDROID_TOOLCHAIN_BIN)/arm-linux-androideabi-ranlib
+else
android_AR=$(ANDROID_TOOLCHAIN_BIN)/$(HOST)-ar
android_CXX=$(ANDROID_TOOLCHAIN_BIN)/$(HOST)$(ANDROID_API_LEVEL)-clang++
android_CC=$(ANDROID_TOOLCHAIN_BIN)/$(HOST)$(ANDROID_API_LEVEL)-clang
android_RANLIB=$(ANDROID_TOOLCHAIN_BIN)/$(HOST)-ranlib
+endif