When cross-compiling packages for Windows, we have two pkgconfig
- contains *.pc files for the cross-compiled dependencies
- contains *.pc files for native libraries
Basically we never want pkg-config to look at native libraries. When
cross-compiling, it is always an error if a program tries to include
native headers or link with native libraries.
But pkg-config currently always falls back on the native directory,
which causes us a problem in the following situations:
(a) User meant to install cross-compiled libfoo, but forgot to, yet the
native libfoo is installed.
(b) libfoo isn't available at all on Windows, but libfoo must be
installed natively. The configure script will always pick up the
native version in this case, and there is no way we can tell pkgconfig
that libfoo doesn't exist.
The attached patch, written by Erik van Pienbroek, adds an environment
variable (PKG_CONFIG_IGNORE_NATIVE=1) to allow pkg-config's
undesirable fallback-to-native behaviour to be suppressed.
Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine. Supports Linux and Windows.