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>