[PATCH] Ignore the default %libdir/pkgconfig directory

Richard W.M. Jones rjones at redhat.com
Wed Jan 28 15:51:06 PST 2009


On Wed, Jan 28, 2009 at 03:42:23PM -0800, Dan Nicholson wrote:
> 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

Yes, I confirmed this does work.

Rich.

-- 
Richard Jones, Emerging Technologies, Red Hat  http://et.redhat.com/~rjones
Read my OCaml programming blog: http://camltastic.blogspot.com/
Fedora now supports 68 OCaml packages (the OPEN alternative to F#)
http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora


More information about the pkg-config mailing list