[PATCH] Ignore the default %libdir/pkgconfig directory
dbn.lists at gmail.com
Wed Jan 28 15:33:39 PST 2009
On Wed, Jan 28, 2009 at 4:35 AM, Richard W.M. Jones <rjones at redhat.com> wrote:
> 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.
> More seriously:
> (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.
If you set PKG_CONFIG_LIBDIR=/usr/i686-pc-mingw/sys-root/mingw/lib/pkgconfig,
does that also work? I believe that was the intention of this
More information about the pkg-config