I’m using the newest Android NDK r6b to build my shared object. This library does not use any kind of STL at all, but resulting .so includes many STL stuff like std::bad_alloc_what(void) and many more, which increases size of binary greatly. Also release builds include this garbage. APP_STL not defined anywhere, also the NDK r5b produces small binary with used functions only. Is it a bug of r6b? How can I build with r6b without STL stuff?
Share
It seems that there is a bug in NDK r6b and it always builds libraries with exceptions support, even if
-fno-exceptionsis explicitly specified.See this question for details: Android NDK produce unreasonable big binaries, how to optimize .so size?