[PATCH] pkgconfig files should be installed to $(libdir)
Yaakov (Cygwin/X)
yselkowitz at users.sourceforge.net
Wed Nov 23 17:31:19 PST 2011
On Thu, 2011-11-17 at 07:43 -0800, Alan Coopersmith wrote:
> Those are bugs then, they should all use $(datadir).
>
> I know I've had to override some in the past when building distro
> packages, but I thought we'd gotten all those fixes in to git by
> now.
No, they must NOT go into $(datadir)/pkgconfig. Here's why:
Presume that you install the *proto/xtrans headers/templates
into /usr/include and the .pc files into /usr/share/pkgconfig, then
proceed to use these headers to cross-compile another X.Org component
with a sysroot-capable cross-toolchain, pkg-config will kindly add a
-I/usr/include to your CFLAGS. This will cause the native system
headers to be picked up instead of the cross-target libc headers,
causing all sorts of compile errors.
Furthermore, <X11/Xfuncproto.h> and <X11/Xpoll.h> (from xproto) and
xtrans.pc have system-dependent substitutions, so they cannot be used
for cross-compiling.
Therefore, regarding the original patch:
Reviewed-by: Yaakov Selkowitz <yselkowitz at users.sourceforge.net>
Yaakov
Cygwin/X
More information about the xorg-devel
mailing list