.pc file installation location
vincent.torri at gmail.com
Thu Feb 18 08:48:52 PST 2010
On Thu, Feb 18, 2010 at 5:06 PM, Thomas Moulard <thomas.moulard at gmail.com>wrote:
> On Thu, Feb 18, 2010 at 4:29 PM, Peter Johansson <trojkan at gmail.com>
> > 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
> > 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
> So yes, IMHO $(libdir)/pkgconfig is the good solution.
as $(libdir) can be modified by the user (it's a configure option),
$libdir)/pkgconfig is the only reasonable solution.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the pkg-config