Browse Source

Fixing Android build from Linux. Letting ANDROID_NDK to be modified at compile time. Default path to the ANDROID_TOOLCHAIN have changed in the latest Android command-line tools release. (#1264)

Co-authored-by: Branlix 3000 <[email protected]>
branlix3000 5 years ago
parent
commit
0e1d7d6430
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/Makefile

+ 2 - 2
src/Makefile

@@ -168,8 +168,8 @@ ifeq ($(PLATFORM),PLATFORM_ANDROID)
         ANDROID_NDK = C:/android-ndk-r21
         ANDROID_TOOLCHAIN = $(ANDROID_NDK)/toolchains/llvm/prebuilt/windows-x86_64
     else
-        ANDROID_NDK = /usr/lib/android/ndk
-        ANDROID_TOOLCHAIN = $(ANDROID_NDK)/toolchains/llvm/prebuilt/linux
+        ANDROID_NDK ?= /usr/lib/android/ndk
+        ANDROID_TOOLCHAIN = $(ANDROID_NDK)/toolchains/llvm/prebuilt/linux-x86_64
     endif
 
     ifeq ($(ANDROID_ARCH),ARM)