How to use STL safely from GDNative on Android

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Roman

In my Android project I’m using C++ from GDNative.
However, some features that I’m implementing require a separate Godot C++ module.

I’m using STL in both GDNative module and regular Godot C++ module.

I quickly looked at the build system and it seems that Godot’s binary is by default linked with gnustl_static library. From GDNative I would like to use the c++_shared library/runtime. This could possibly cause issues -

Is there a simple way to pick c++_shared runtime for both builds? How to use STL on Android with Godot safely?


:bust_in_silhouette: Reply From: Roman

I changed the build scripts in platform/android and now I’m using the c++_shared library