On Wed, Jan 28, 2009 at 4:35 AM, Richard W.M. Jones <[email protected]> wrote: > Hi, > > When cross-compiling packages for Windows, we have two pkgconfig > directories: > > /usr/i686-pc-mingw/sys-root/mingw/lib/pkgconfig > - contains *.pc files for the cross-compiled dependencies > /usr/lib{,64}/pkgconfig > - 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 variable. -- Dan _______________________________________________ fedora-mingw mailing list [email protected] https://admin.fedoraproject.org/mailman/listinfo/fedora-mingw
