Index: build/config/compiler/BUILD.gn |
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn |
index 584f72be2e30c6277aa04d6d005b788137e55d06..1460fb3eb1eb955b9fc32ae3c9306018d372d071 100644 |
--- a/build/config/compiler/BUILD.gn |
+++ b/build/config/compiler/BUILD.gn |
@@ -449,8 +449,15 @@ config("compiler") { |
ldflags += [ |
"-Wl,--no-undefined", |
- # Don't export symbols from statically linked libraries. |
- "-Wl,--exclude-libs=ALL", |
+ # Don't allow visible symbols from libgcc or stlport to be |
+ # re-exported. |
+ "-Wl,--exclude-libs=libgcc.a", |
+ "-Wl,--exclude-libs=libstlport_static.a", |
+ |
+ # Don't allow visible symbols from libraries that contain |
+ # assembly code with symbols that aren't hidden properly. |
+ # http://crbug.com/448386 |
+ "-Wl,--exclude-libs=libvpx_assembly_arm.a", |
] |
if (cpu_arch == "arm") { |
ldflags += [ |