Hi Eduardo,

"Eduardo Lima (Etrunko)" <eduardo.l...@linux.intel.com> writes:

> Is there any specific reason why is the .pc file not being installed in
> standard $(libdir)/pkgconfig such as the others? In ths case the patch
> would simply be something like:
>
> +pkgconfig_DATA += wayland-scanner.pc

It is because wayland-scanner.pc is arch-independent, while others are
arch-dependent and may be installed in different libdir (e.g. /usr/lib
or /usr/lib64) under multilib environment.  By default, pkg-config looks
for datadir/pkgconfig as well as libdir/pkgconfig.

> Weston fails to build if I don't add $(datadir)/pkgconfig to
> PKG_CONFIG_PATH environment.

Yes, it needs to be added if you are using custom buildroot.  Actually,
jhbuild does that automatically:

$ jhbuild run sh -c 'echo $PKG_CONFIG_PATH'
/home/ueno/wayland/install/lib64/pkgconfig:/home/ueno/wayland/install/share/pkgconfig:/usr/lib64/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig

Regards,
-- 
Daiki Ueno
_______________________________________________
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to