After the configure script I run make all and install the app on an android emulator.
In the app I go to Help → Describe Variable → I type in system-configuration-features. Emacs lists here all enabled features and my expectation was that GLIB is listed as well, like in the attached picture.
You haven’t all of Glib’s dependencies in your search path. It isn’t quite necessary to link to Glib as doing so confers no advantage otherwise than as one of librsvg’s mandatory dependencies.
@repetitivestrain thank you for responding! You are probably right that the GLIB library is not needed on its own but I do not even know how to test it. Additionally, I download a packaged emacs-30.1-21-x86_64.apk from Android ports for GNU Emacs - Browse Files at SourceForge.net and when I install the app on emulator, the GLIB is somehow there(see screenshot above).
I followed your instructions carefully, I have every dependency in the path($deps) and libglib_emacs.so is built in /cross/ndk-build after running make all. I assume that it is successfully linked for the RSVG library because RSVG library shows up under features.
Maybe you could give me a direction how I could link GLIB extra as a separate dependency? Maybe you have an example or some docs or some place in code where the change belongs?