redland fails to cross build from source for multiple reasons. The
immediate failure is a missing dependency on pkg-config. As such, it
fails discovering rasqal and fails. Beyond that, it also uses
mysql_config, which is known to not work during cross compilation.
Instead, pkg-config should be used. Unfortunately, the .pc file shipped
by mariadb wrongly reports an ancient version (#1024241). This must be
fixed before using it. Once that has happened, the attached patch makes
redland cross buildable.
Helmut