We are using an third party static library, let say A.a
for android development. We link it as shared library and it works fine in the one App, but when use B.so
to build another C.so
, some symbols in A.a
cannot find. We have already use -Wl,--export-dynamic
and -Wl,--whole-archive
to build B.so
. We have using nm
to check those symbols, it exist but list as “t”
instead of “T”
,which means it is local symbols instead of external. Seams the A.a
are build with -fvisibility=hidden
after som investigation.
But because some reason it is hard for us to got an new build library immediately, so we need some workaround. Is there any way to export those symbols as global even it has been build with -fvisibility=hidden
in B.so
at link time.