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
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
相关文章推荐
- 安卓系统源码编译系列(四)——LOCAL_WHOLE_STATIC_LIBRARIES和LOCAL_STATIC_LIBRARIES的区别浅析
- LOCAL_WHOLE_STATIC_LIBRARIES与LOCAL_STATIC_LIBRARIES的区别
- LOCAL_WHOLE_STATIC_LIBRARIES与LOCAL_STATIC_LIBRARIES的区别
- 安卓系统源码编译系列(4)——LOCAL_WHOLE_STATIC_LIBRARIES和LOCAL_STATIC_LIBRARIES的区别浅析
- LOCAL_WHOLE_STATIC_LIBRARIES与LOCAL_STATIC_LIBRARIES的区别
- LOCAL_WHOLE_STATIC_LIBRARIES与LOCAL_STATIC_LIBRARIES的区别
- 安卓系统源码编译系列(4)——LOCAL_WHOLE_STATIC_LIBRARIES和LOCAL_STATIC_LIBRARIES的区别浅析
- LOCAL_LDLIBS 与 LOCAL_SHARED_LIBRARIES的区别
- android LOCAL_STATIC_LIBRARYS LOCAL_LDLIBS 区别
- LOCAL_SHARED_LIBRARIES 与 LOCAL_LDLIBS,LOCAL_LDFLAGS的区别
- LOCAL_SHARED_LIBRARIES 与 LOCAL_LDLIBS,LOCAL_LDFLAGS的区别
- LOCAL_SHARED_LIBRARIES 与 LOCAL_LDLIBS,LOCAL_LDFLAGS的区别
- global,local,static的区别
- 【转】 NDK LOCAL_SHARED_LIBRARIES 与 LOCAL_LDLIBS,LOCAL_LDFLAGS的区别
- LOCAL_SHARED_LIBRARIES 与 LOCAL_LDLIBS,LOCAL_LDFLAGS的区别
- LOCAL_SHARED_LIBRARIES 与 LOCAL_LDLIBS,LOCAL_LDFLAGS的区别
- LOCAL_SHARED_LIBRARIES 与 LOCAL_LDLIBS,LOCAL_LDFLAGS的区别
- 深入浅出Android makefile(4)--LOCAL_STATIC_LIBRARIES
- LOCAL_SHARED_LIBRARIES 与 LOCAL_LDLIBS,LOCAL_LDFLAGS的区别
- 请问大家ndk中LOCAL_SHARED_LIBRARIES LOCAL_LDLIBS什么区别