Update NDK to 21e.
Test: ninja -C out/android_asan_arm64
Test: ninja -C out/android_asan_arm
Test: ninja -C out/android_release_arm64
Test: ninja -C out/android_release_arm
Change-Id: I4df29a6ac5896f3bae750db9e2821df2ff526b2e
diff --git a/gn/standalone/BUILD.gn b/gn/standalone/BUILD.gn
index 9f7640a..af70070 100644
--- a/gn/standalone/BUILD.gn
+++ b/gn/standalone/BUILD.gn
@@ -292,6 +292,10 @@
"-Wl,-z,now",
"-Wl,--warn-shared-textrel",
"-Wl,--fatal-warnings",
+
+ # New NDKs need setting this to not give "unable to find library -lc++".
+ # See https://github.com/android/ndk/issues/951#issuecomment-501017894.
+ "-nostdlib++",
]
lib_dirs = [
"$android_ndk_root/sources/cxx-stl/llvm-libc++/libs/$android_app_abi",