Index: build/config/BUILDCONFIG.gn |
diff --git a/build/config/BUILDCONFIG.gn b/build/config/BUILDCONFIG.gn |
index d806a1763a4e2cb35513d9834ace1dcc99c92ab7..890304857be44126404bdeb0528cbefd8bc9a45e 100644 |
--- a/build/config/BUILDCONFIG.gn |
+++ b/build/config/BUILDCONFIG.gn |
@@ -441,6 +441,11 @@ if (is_win) { |
_shared_library_configs += _windows_linker_configs |
} else if (is_mac) { |
_shared_library_configs += [ "//build/config/mac:mac_dynamic_flags" ] |
+} else if (is_android) { |
+ # Strip native JNI exports from shared libraries by default. Binaries that |
+ # want this can remove this config. |
+ _shared_library_configs += |
+ [ "//build/config/android:hide_native_jni_exports" ] |
} |
set_defaults("shared_library") { |
configs = _shared_library_configs |