Among other things, this fixes the build wrt ffi.h not being found.
CC libgobject_2_0_la-gclosure.lo
gclosure.c:29:17: fatal error: ffi.h: No such file or directory
make install
cd ..
-## # glib
+# glib
wget https://github.com/djdeath/glib/archive/android.zip
unzip -q android.zip
cd glib-android
./autogen.sh
-LDFLAGS=-L$PREFIX/lib CPPFLAGS=-I$PREFIX/include glib_cv_stack_grows=no glib_cv_uscore=no ac_cv_func_posix_getpwuid_r=no ac_cv_func_posix_getgrgid_r=no ./configure $C --disable-modular-tests
+# Note: Manual LDFLAGS/CPPFLAGS needed for libiconv, rest uses pkg-config.
+PKG_CONFIG_PATH=$P LDFLAGS=-L$PREFIX/lib CPPFLAGS=-I$PREFIX/include glib_cv_stack_grows=no glib_cv_uscore=no ac_cv_func_posix_getpwuid_r=no ac_cv_func_posix_getgrgid_r=no ./configure $C --disable-modular-tests
make
make install
cd ..