I compiled the sqlite3 amalgamation into Android NDK, and I’m able to use it from my C++ code. However, libsqlite3.a is 2.6MB. This link says the library size should be around 500KB for typical Linux/GCC systems with -O2. I’m using NDK r6b to build, and didn’t set an optimization level for the compiler, but the default is -O2. Any idea why my library is so large?
Share
Don’t measure library size from .a file. Measure linked size (from .so file).
Try stripping the .a library file, maybe it includes debugging symbols.