aboutsummaryrefslogtreecommitdiff
path: root/build/config/android/BUILD.gn
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-12-13 00:07:01 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-12-13 00:07:01 +0000
commitd3eb409207e115913ca857370ec3f57b0176bcc0 (patch)
tree16765b6280082dc0b023adec56c46e6ebb418999 /build/config/android/BUILD.gn
parent613d0296f2046c72066f26bb60fc8fda2addd45f (diff)
parent5d6766f0e0e4382d8cd4d0376232d344e40970b6 (diff)
downloadangle-d3eb409207e115913ca857370ec3f57b0176bcc0.tar.gz
Change-Id: Id5855d5fd079a29ecbd0c367f5bf73f6e0f16ee7
Diffstat (limited to 'build/config/android/BUILD.gn')
-rw-r--r--build/config/android/BUILD.gn14
1 files changed, 14 insertions, 0 deletions
diff --git a/build/config/android/BUILD.gn b/build/config/android/BUILD.gn
index 697d598f0b..6705999966 100644
--- a/build/config/android/BUILD.gn
+++ b/build/config/android/BUILD.gn
@@ -82,6 +82,20 @@ config("compiler") {
# that is Android-only. Please see that target for advice on what should go in
# :runtime_library vs. :compiler.
config("runtime_library") {
+ libs = []
+ ldflags = []
+
+ # On 64-bit platforms, the only symbols provided by libandroid_support.a are
+ # strto{d,f,l,ul}_l. These symbols are not used by our libc++, and newer NDKs
+ # don't provide a libandroid_support.a on 64-bit platforms, so we only depend
+ # on this library on 32-bit platforms.
+ if (current_cpu == "arm" || current_cpu == "x86") {
+ libs += [ "android_support" ]
+ }
+
+ if (current_cpu == "arm" && arm_version == 6) {
+ libs += [ "atomic" ]
+ }
}
config("hide_all_but_jni_onload") {