let's say A is a shared library, B is a static library and B links to A. now C (also a shared library)need to link to B. the link error is function in A(called by B) could not be found. below is my android.mk
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := c
LOCAL_LDLIBS := -L/$(LOCAL_PATH)/libs
LOCAL_LDLIBS += -la
#LOCAL_SHARED_LIBRARIES := a
LOCAL_STATIC_LIBRARIES := b
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/inc
LOCAL_C_INCLUDES := $(LOCAL_EXPORT_C_INCLUDES)
LOCAL_SRC_FILES := src/c.cpp
include $(BUILD_SHARED_LIBRARY)
Thanks very much, I have been stucked here for days
it seems to be ok now, and I still do not know where is wrong. maybe I did not put the lib of a and b in the correct directory of C.