aboutsummaryrefslogtreecommitdiffstats
path: root/XCompile-Android.txt
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2021-01-31 13:24:58 -0800
committerChris Robinson <[email protected]>2021-01-31 13:24:58 -0800
commit0c510416db6acbc9da3536d005f7719ea1324ed1 (patch)
treee9c9feaa471af3384aa50775444cda8790f90118 /XCompile-Android.txt
parentbedb89eb09478a27d647bc44e7c355305d6aa694 (diff)
Add a comment about using lld on Android
Diffstat (limited to 'XCompile-Android.txt')
-rw-r--r--XCompile-Android.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/XCompile-Android.txt b/XCompile-Android.txt
index 7a660d2a..693f0ed9 100644
--- a/XCompile-Android.txt
+++ b/XCompile-Android.txt
@@ -7,5 +7,10 @@
# cmake .. -DANDROID_STL=c++_shared \
# -DCMAKE_TOOLCHAIN_FILE=${ndk_root}/build/cmake/android.toolchain.cmake
#
+# Certain NDK versions may also need to use the lld linker to avoid errors
+# about missing liblog.so and libOpenSLES.so. That can be done by:
+# cmake .. -DANDROID_LD=lld \
+# -DCMAKE_TOOLCHAIN_FILE=${ndk_root}/build/cmake/android.toolchain.cmake
+#
MESSAGE(FATAL_ERROR "Use the toolchain provided by the Android NDK")