pkg-config search path

Keith Packard keithp at keithp.com
Thu Sep 25 00:32:39 EEST 2003


Around 17 o'clock on Sep 24, Owen Taylor wrote:

> Not /usr/X11R6/lib/pkgconfig? Where does XFree86 put it's .pc files
> currently?

Check out your system -- /usr/lib/X11 should be a symlink to 
/usr/X11R6/lib.  And, eventually we'll see X11R7 :-)

> /etc/pkgconfig.conf (pkg-config.conf?) should replace, instead of
> augmenting, IMO.

Hmm.  That's not how /etc/ld.so.conf works.  Is augmenting bad in some 
way?  All it does is avoid missing libraries installed in the standard 
places.

> For PKG_CONFIG_PATH there is the question of whether we want to
> make people specify
> 
>  /my/prefix/lib:/my/prefix/share
> 
> explicitly or whether we want to allow some abbreviation of that.
> (Is the complexity and confusion worth the gain?)

Given that PKG_CONFIG_PATH currently points at the pkgconfig directory 
itself, I'd say locating the /lib/ section and replacing it with /share/ 
borders on mystic behaviour.

> For /usr/lib64 that should be covered by making the defaults
> include $libdir and $datadir instead of a hardcoded $prefix/lib,
> $prefix/share.

Yeah, that makes sense.

> There is something of an issue here for multi-architecture platforms
> (like x86_64, ppc64) that /etc/pkgconfig.conf should be architecture
> dependent. One possibility is to look first for

However /etc/ld.so.conf is managed should give us a strong clue as to a 
reasonable answer.

-keith





More information about the xdg mailing list