Default search paths

Daniel Macks dmacks at
Wed May 3 08:14:11 PDT 2006

On Sat, Apr 29, 2006 at 12:52:53PM +0200, Olivier Boudeville wrote:
> Hi,
> 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).
> I know that /usr/local/lib/pkgconfig may be specified by
> PKG_CONFIG_PATH, but I would not trust most users to do so, as
> pkg-config is merely a developer-tool. Would not it be better for
> everyone if /usr/local/lib/pkgconfig was automatically searched ? One
> strong reason for that is the autotools use /usr/local as default
> prefix, so the installed *.pc cannot be found when building oneself some
> less common tools.

Not including /usr/local keeps it consistent with the compiler search
path lists though (one must usually explicitly pass -I and -L for
those include/ and lib/ dirs).

One can alter the builtin default search paths when pkg-config is
compiled, so perhaps some distros have agreed with you.


Daniel Macks
dmacks at

More information about the pkg-config mailing list