Index: mojo/mojo_public.gypi |
diff --git a/mojo/mojo_public.gypi b/mojo/mojo_public.gypi |
index 15eccb0c7e9bdc6f0164625a13a5a1392dcc40d4..c4fd26eaa9d6df348f956c234bfa016198faba0e 100644 |
--- a/mojo/mojo_public.gypi |
+++ b/mojo/mojo_public.gypi |
@@ -51,6 +51,16 @@ |
'public/gles2/gles2_private.h', |
], |
'conditions': [ |
+ ['OS=="android"', { |
+ 'ldflags!': [ |
+ # Remove default export list because this lib has different exports. |
+ '-Wl,--version-script="<(android_linker_script)"', |
+ ], |
+ 'ldflags': [ |
+ # Don't export symbols from statically linked libraries. |
+ '-Wl,--exclude-libs=ALL', |
+ ], |
+ }], |
['OS=="mac"', { |
'xcode_settings': { |
# Make it a run-path dependent library. |
@@ -80,6 +90,16 @@ |
'public/tests/test_support_private.h', |
], |
'conditions': [ |
+ ['OS=="android"', { |
+ 'ldflags!': [ |
+ # Remove default export list because this lib has different exports. |
+ '-Wl,--version-script="<(android_linker_script)"', |
+ ], |
+ 'ldflags': [ |
+ # Don't export symbols from statically linked libraries. |
+ '-Wl,--exclude-libs=ALL', |
+ ], |
+ }], |
['OS=="mac"', { |
'xcode_settings': { |
# Make it a run-path dependent library. |