I am building an application on Android using NDK and V8. I would prefer to use C++11 and GNU STL for features such as shared_ptr
; however, the V8 build system seems to be hardcoded to use stlport_static
as its STL variant.
Even when patching the build system to generate a fully self-contained library, V8's build does not statically link STLport into its .a files (which is to be expected), and thus I get hundreds of linker errors from unresolved symbols in libv8_base.a
et al. I also do not see any way to indicate to ndk-build
that it should link in stlport_static
when I am using a different STL variant.
Is there a reasonable pattern to linking in stlport_static
while using gnustl_static
, or, better yet, is there a way of building Android V8 against gnustl_static
instead?