So you can create a i586-mingw32msvc-pkg-config file. Just in case it get's lost here it is:

#!/bin/bash

# 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.
export PKG_CONFIG_LIBDIR=/usr/i586-mingw32msvc/lib/pkgconfig

About neozeed

What is there to tell? I've loved UNIX like things since I was first exposed to QNX in highschool (we had the Unisys ICONS!), and spent the better time of my teenage years trying to get my own UNIX... I should have bought Coherent in retrospect.. Anyways latched onto Linux in 1992, and then got some old BSD admin books and have been hooked on the VAX BSD & other big/ancient things since...!

I can’t remember what month and year, but there’s an issue of Linux Journal which describes the problems of cross-compiling, that is making a Linux program work via building it on Cygwin, say, and then confirming it works on a Fedora platform, say.

http://qemu.weilnetz.de/ is cross-compiled for Windows, and I’ve been using 2.4.0 (and formerly 2.2.0) without problems. I’m not energetic enough to try rebuilding it myself, though, but presumably he has some useful patches for your use.