Re: find libxml2 using pkg-config - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: find libxml2 using pkg-config
Date
Msg-id 1362367811.11571.15.camel@vanquo.pezone.net
Whole thread Raw
In response to Re: find libxml2 using pkg-config  (Noah Misch <noah@leadboat.com>)
Responses Re: find libxml2 using pkg-config  (Noah Misch <noah@leadboat.com>)
List pgsql-hackers
On Fri, 2013-03-01 at 14:25 -0500, Noah Misch wrote:
> On Mon, Jan 14, 2013 at 06:51:05AM -0500, Peter Eisentraut wrote:
> > In multi-arch OS installations, using a single foo-config script to
> find
> > libraries is problematic, because you don't know which architecture
> it
> > will point to, and you can't choose which one you want.  Using
> > pkg-config is better in that situation, because you can use its
> > environment variables to point to your preferred version
> > of /usr/lib*/pkgconfig or similar.
> 
> "./configure XML2_CONFIG=/my/preferred/xml2-config" achieves this
> today. 

No.

The way multi-arch installations work is that you have the libraries
under /usr/lib and /usr/lib64, or /usr/lib/$arch1 and /usr/lib/$arch2,
but only one /usr/bin.  So there cannot be two foo-config scripts to
cover this.  There is, however, /usr/lib/pkgconfig
and /usr/lib64/pkgconfig (or analogous), so pkg-config can handle this.





pgsql-hackers by date:

Previous
From: Craig Ringer
Date:
Subject: Re: Strange Windows problem, lock_timeout test request
Next
From: Stephen Frost
Date:
Subject: Re: Strange Windows problem, lock_timeout test request