Been wondering and now confused.
When app_stl = stlport_static or stlport_shared is set in the Application.mk file and you are trying to build either shared and static version of the library. what is the effect,why would you have a specific case (see below) in your android ndk application ?
let say I have
Case1: APP_STL=stlport_static and include $(BUILD_SHARED_LIBRARY)
Case2: APP_STL=stlport_static and include $(BUILD_STATIC_LIBRARY)
Case3: APP_STL=stlport_shared and include $(BUILD_SHARED_LIBRARY)
Case4: APP_STL=stlport_shared and include $(BUILD_STATIC_LIBRARY)
I do understand the differnce between stlport and gnustl so I am good at that part.
These two configurations (static linking of STLport) could get you in trouble if you have two or more libraries that depend upon STLport. Because two or more libraries are carrying around symbols for STLport, you will likely violate the One Definition Rule.
I believe that's why
doc/CPLUSPLUS-SUPPORT.html
has: