[Xcb] [PATCH] pkg-config: Add sysroot prefix

Eric Anholt eric at anholt.net
Wed Oct 4 16:32:27 UTC 2017


Daniel Stone <daniels at collabora.com> writes:

> xcb-proto's pkg-config file exports static file paths for where to find
> its Python files and the XML definitions.
>
> When used to discover cflags, library paths, etc, pkg-config will
> prepend ${PKG_CONFIG_SYSROOT_DIR}, if any, to those paths. This makes
> the use of a sysroot prefix transparent to users. However, since it
> doesn't know about paths in custom variables, it cannot automatically
> prefix this.
>
> Adding ${pc_sysrootdir} to these absolute paths makes the behaviour
> match, and XCB builds work out of the box in a sysroot.

Reviewed-by: Eric Anholt <eric at anholt.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/xcb/attachments/20171004/e3a663cc/attachment.sig>


More information about the Xcb mailing list