Default search paths
Tollef Fog Heen
tfheen at err.no
Mon May 29 04:41:05 PDT 2006
Olivier Boudeville skrev:
> it must be a fairly usual question, but I did not find the final word
> through the wiki or the mailing list archive.
Hi, sorry for the late response. I've been busy.
> It seems that, for a reason I cannot explain, /usr/local/lib/pkgconfig
> is not always hardcoded in pkg-config search paths, even after having
> upgraded to newer versions (it is ok on Ubuntu [0.19] but not for Gentoo
> [0.20] apparently).
pkg-config doesn't hardcode any paths apart from the ones hardcoded by
the --with-pc-path switch. That defaults to
$libdir/pkgconfig:$datadir/pkgconfig (which is usually
/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig or the same, sans
local). The Debian (and thereby the Ubuntu) packages hardcode it to
I don't know what gentoo does, but if they pass --prefix=/usr (as I
suspect they'll do), it'll default to /usr/share/pkgconfig and
More information about the pkg-config