.pc file installation location

Thomas Moulard thomas.moulard at gmail.com
Thu Feb 18 08:06:09 PST 2010


On Thu, Feb 18, 2010 at 4:29 PM, Peter Johansson <trojkan at gmail.com> wrote:
> Jeff Squyres wrote:
>> Greetings.  I'm creating .pc files for our project (www.open-mpi.org).
>>
>> Where does one typically install these files?  I see that pkg-config(1) v0.23 says:
>>
>>     ...By default, pkg-config looks in the directory prefix/lib/pkgconfig for these files;...
>>
>> Does that really mean $prefix/lib/pkgconfig?  Or does it actually mean $libdir/pkgconfig?
>>
>>
> I use the latter: $(libdir)/pkgconfig

Two usual cases which justify a custom libdir is:
- release/debug libraries
- different instruction sets (32/64 bits for instance)

...and in both case you really want to maintain two different sets of .pc files.
So yes, IMHO $(libdir)/pkgconfig is the good solution.
-- 
Thomas Moulard


More information about the pkg-config mailing list