Android.mk should add these 2 variables to each of the LOCAL_MODULE so that the prebuilt static library can be put into ndk-bundle/sources/
LOCAL_EXPORT_C_INCLUDES
LOCAL_CPP_FEATURES
like below
include $(CLEAR_VARS)
LOCAL_MODULE := libboost_program_options
LOCAL_SRC_FILES := $(TARGET_ARCH_ABI)/lib/libboost_program_options-gcc-mt-1_53.a
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include
LOCAL_CPP_FEATURES := rtti exceptions
include $(PREBUILT_STATIC_LIBRARY)
Android.mk should add these 2 variables to each of the LOCAL_MODULE so that the prebuilt static library can be put into ndk-bundle/sources/
LOCAL_EXPORT_C_INCLUDES
LOCAL_CPP_FEATURES
like below