.pc file installation location

Vincent Torri 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>
> 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.
>

as $(libdir) can be modified by the user (it's a configure option),
$libdir)/pkgconfig is the only reasonable solution.

Vincent Torri
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/pkg-config/attachments/20100218/9874ea55/attachment.htm 


More information about the pkg-config mailing list