Index: build/config/BUILDCONFIG.gn |
diff --git a/build/config/BUILDCONFIG.gn b/build/config/BUILDCONFIG.gn |
index 19e1985225c82c5e00b55d452f49925563838d8e..462aaa5420ef58d1345152cf0d3e290e5893b1fc 100644 |
--- a/build/config/BUILDCONFIG.gn |
+++ b/build/config/BUILDCONFIG.gn |
@@ -236,6 +236,10 @@ if (is_win) { |
} |
if (is_posix) { |
_native_compiler_configs += [ "//build/config/gcc:no_exceptions" ] |
+ if (is_product) { |
+ _native_compiler_configs += |
+ [ "//build/config/gcc:symbol_visibility_hidden" ] |
+ } |
} |
if (is_linux) { |