From 7e1b26f0fce92f3ba46fc7f863ec7dc9ae49063e 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 e970fd3931..f266a073bc 100644 --- a/src/components/cronet/BUILD.gn +++ b/src/components/cronet/BUILD.gn @@ -117,6 +117,10 @@ if (is_android) { ] public_configs = [ ":shared_library_public_config" ] } + + if (is_android) { + configs -= [ "//build/config/android:hide_all_but_jni_onload" ] + } } _package_dir = "$root_out_dir/cronet"