android: export only the required functions
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 <4c996f2f093ddd0585a556460b4cc3ba555546ef@gmail.com>
Reviewed-by: Chad Versace <a557f7f75bf28dc19ac99107f5cc7cd6b3fbdb1a@intel.com>
(cherry picked from commit f8d21658d60b90b472c12b7cf53a2bdd9200d8ce)

dcbaker/waffle,waffle-gl/waffle,fjhenigman/waffle,dcbaker/waffle,waffle-gl/waffle,fjhenigman/waffle,waffle-gl/waffle,waffle-gl/waffle,chadversary/waffle,chadversary/waffle,evelikov/waffle,evelikov/waffle,chadversary/waffle,fjhenigman/waffle,evelikov/waffle,dcbaker/waffle