您的位置:首页 > 其它

LOCAL_WHOLE_STATIC_LIBRARIES 与LOCAL_STATIC_LIBRARIES的区别

2012-12-02 16:16 1841 查看
From the description below,if we use LOCAL_WHOLE_STATIC_LIBRARIES to
generate a shared library,all the symbols in static lib will be
included in the shared library.

But in my test,the generated shared library is only about 4K which
don't have all the symbols of static library, and there's unresolved
symbol when another app link with the shared library.

Can someone help me?

LOCAL_WHOLE_STATIC_LIBRARIES
These are the static libraries that you want to include in your module
without allowing the linker to remove dead code from them. This is
mostly useful if you want to add a static library to a shared library
and have the static library's content exposed from the shared
library.

LOCAL_WHOLE_STATIC_LIBRARIES := \
libsqlite3_android

LOCAL_STATIC_LIBRARIES
These are the static libraries that you want to include in your
module. Mostly, we use shared libraries, but there are a couple of
places, like executables in sbin and host executables where we use
static libraries instead.

LOCAL_STATIC_LIBRARIES := \
libutils \
libtinyxml
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: