[PATCH] pkgconfig files should be installed to $(libdir)

Dmitry Shatrov shatrov at gmail.com
Thu Nov 17 03:37:29 PST 2011


Daniel,

I looked at several other protocol modules, and all of them use
$(libdir) for their pkgconfig files.

I'm building a self-contained binary distribution which includes
several libraries from x.org, and libxtrans is the only module with
such problem. I don't add share/pkgconfig to PKG_CONFIG_PATH, and it
is fine in all cases except this one. Te disto consists of more than
100 packages, many of which use pkg-config.

Specifically, libX11 configure fails without moving xtrans.pc to
$(prefix)/lib/pkgconfig

Regards,
Dmitry

On Thu, Nov 17, 2011 at 3:28 PM, Daniel Stone <daniel at fooishbar.org> wrote:
> Hi,
>
> On 17 November 2011 11:10, Dmitry Shatrov <shatrov at gmail.com> wrote:
>> --- a/Makefile.am
>> +++ b/Makefile.am
>> @@ -14,7 +14,7 @@ Xtransinclude_HEADERS = \
>>  aclocaldir = $(datadir)/aclocal
>>  aclocal_DATA = xtrans.m4
>>
>> -pkgconfigdir = $(datadir)/pkgconfig
>> +pkgconfigdir = $(libdir)/pkgconfig
>>  pkgconfig_DATA = xtrans.pc
>>
>>  MAINTAINERCLEANFILES = ChangeLog INSTALL
>
> Actually, no.  xtrans (despite the name) isn't actually
> architecture-dependent in any way: it just installs a bunch of source
> files to /usr/include.  So, like the protocol modules, its pkg-config
> can go in $(datadir).
>
> Cheers,
> Daniel
>


More information about the xorg-devel mailing list