So as always it’s the glibc2 wars. And as part of the fun you need pkg-config. And since it has to run, you’ll end up with the native version.
Luckily I found this site, mega-nerd.com
So you can create a i586-mingw32msvc-pkg-config file. Just in case it get's lost here it is:
# This file has no copyright assigned and is placed in the Public Domain.
# No warranty is given.
# When using the mingw32msvc cross compiler tools, the native Linux
# pkg-config executable works fine as long as the default PKG_CONFIG_LIBDIR
# is overridden.
# Also want to override the standard user defined PKG_CONFIG_PATH with
# a mingw32msvc specific one.
# Now just execute pkg-config with the given command line args.
Fun as always, right?
And as always Qemu can be configured with:
When cross compiling.