android: export only the required functions
commitf8d21658d60b90b472c12b7cf53a2bdd9200d8ce
authorEmil Velikov <emil.l.velikov@gmail.com>
Wed, 28 Jan 2015 00:00:27 +0000 (28 00:00 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 4 Feb 2015 00:45:20 +0000 (4 00:45 +0000)
tree370b918486cb33a876b6db76328954465026f35b
parent60e21362ea6d3e2265f8753217d1f0100055431c
android: export only the required functions

By adding -fvisibility=hidden to the compiler flags. This obviously
requires GCC 4.0 or later, which has been an undocumented requirement
for our android build since day one.

Additionally it nicely reduces the size of the binary

Before

   text    data     bss     dec     hex filename
  49310     660      20   49990    c346 libwaffle-1.so

Overall size: 67K

After:

   text    data     bss     dec     hex filename
  36612     560      20   37192    9148 libwaffle-1.so

Overall size: 52K

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Chad Versace <chad.versace@intel.com>
Android.mk