From f1768756b2f9b7d12ee9de1a7ee1b670832495a3 Mon Sep 17 00:00:00 2001 From: klzgrad Date: Wed, 4 May 2022 14:52:09 +0800 Subject: [PATCH] cronet: Do not hide symbols on Android shared build The default compiler config hides all but JNI symbols, but here it is building the shared library of Cronet C API. --- src/components/cronet/BUILD.gn | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/cronet/BUILD.gn b/src/components/cronet/BUILD.gn index 5be0ce232c..636e66b4f0 100644 --- a/src/components/cronet/BUILD.gn +++ b/src/components/cronet/BUILD.gn @@ -137,6 +137,10 @@ if (is_android) { ] public_configs = [ ":shared_library_public_config" ] } + + if (is_android) { + configs -= [ "//build/config/android:hide_all_but_jni_onload" ] + } } test("cronet_tests") {