mingw-fetch-dependencies.sh: Add a wrapper for pkg-config
authorNeil Roberts <neil@linux.intel.com>
Wed, 16 Mar 2011 12:27:22 +0000 (12:27 +0000)
committerNeil Roberts <neil@linux.intel.com>
Wed, 16 Mar 2011 13:06:52 +0000 (13:06 +0000)
commitf23a7583e1c6d53554f50ca4223ebec39038a15d
treee94d604cf7d7acb994d3844949862131547869af
parent4dc8ccf9eab6d360fc208a32d1516bfd9efbddd0
mingw-fetch-dependencies.sh: Add a wrapper for pkg-config

On a Fedora system (and maybe others) there is a wrapper script called
i686-pc-mingw32-pkg-config. This script unsets the PKG_CONFIG_PATH
variable and then sets the PKG_CONFIG_LIBDIR variable so that it won't
pick up the native system .pc files. This breaks cross compiling in
mingw-fetch-dependencies.sh because it ends up removing its attempts
to set a local search path.

To fix this, the mingw-fetch-dependencies script now generates its own
wrapper script which instead sets PKG_CONFIG_LIBDIR to the local
clutter-cross prefix and then runs the original pkg-config program
from the search path. This should have the same benefit of preventing
it from finding native system .pc files on systems that don't provide
a cross pkg-config. The cross compiling for json-glib and the
recommend args to pass to configure when building clutter are updated
to set the PKG_CONFIG varible to point to this wrapper script.
build/mingw/mingw-fetch-dependencies.sh