Strange, none of the tests try to link glib.

Have you verified that libglib-x.y.so (where x.y is a version number, e.g. 2.0) is part of the cross-compile sysroot?

Cheers,
_