OSDN Git Service

Build the shared library with --whole-archive
authorZach Johnson <zachoverflow@google.com>
Tue, 19 May 2015 21:49:37 +0000 (14:49 -0700)
committerAndre Eisenbach <eisenbach@google.com>
Tue, 19 May 2015 22:11:32 +0000 (22:11 +0000)
commit0ef6b347b8cf1a9e83e6b680a0ee025da24f00b6
tree052cb28b29b02117e5f91fcfa4b66e0c515c5279
parent7bd4038ea9a2f1953dc98fa67aec413b6247c584
Build the shared library with --whole-archive

For stack static libraries, use LOCAL_WHOLE_STATIC_LIBRARIES
to ensure they get --whole-archive applied to them.

This means module symbols in static libraries won't be
removed by the linker and dlsym will find them.

This patch also removes the code hacks we needed to
trick the linker into including the module symbols in
the final shared library.

Change-Id: I2463d0e6fb38f1e75c8293179cf9d4ca33eda84e
btcore/src/module.c
main/Android.mk