[PATCH] Ignore the default %libdir/pkgconfig directory

Dan Nicholson dbn.lists at gmail.com
Wed Jan 28 15:42:23 PST 2009


On Wed, Jan 28, 2009 at 3:38 PM, Richard W.M. Jones <rjones at redhat.com> wrote:
> On Wed, Jan 28, 2009 at 03:33:39PM -0800, Dan Nicholson wrote:
>> 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.
>
> Yes, I think that should work, and I'm not sure why we didn't see it
> before.  Anyhow, I'll try it out later this week.

Pretty easy to test. Assume you have foo.pc in
/usr/i686-pc-mingw/sys-root/mingw/lib/pkgconfig and
/usr/lib/pkgconfig.

$ PKG_CONFIG_LIBDIR=/usr/i686-pc-mingw/sys-root/mingw/lib/pkgconfig
PKG_CONFIG_DEBUG_SPEW=1 pkg-config --print-errors --exists foo

That should give you any information you need to see. You can also
make PKG_CONFIG_LIBDIR into a PATH like variable:

PKG_CONFIG_LIBDIR=/usr/i686-pc-mingw/sys-root/mingw/lib/pkgconfig:/usr/i686-pc-mingw/sys-root/mingw/share/pkgconfig

--
Dan


More information about the pkg-config mailing list