mirror of
https://gitlab.freedesktop.org/xorg/proto/xcbproto.git
synced 2025-12-20 03:30:24 +01:00
pkg-config: Add sysroot prefix
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.
Signed-off-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
dbf346502a
commit
bd7a481a3b
1 changed files with 2 additions and 2 deletions
|
|
@ -3,8 +3,8 @@ exec_prefix=@exec_prefix@
|
|||
datarootdir=@datarootdir@
|
||||
datadir=@datadir@
|
||||
libdir=@libdir@
|
||||
xcbincludedir=@xcbincludedir@
|
||||
pythondir=@pythondir@
|
||||
xcbincludedir=${pc_sysrootdir}@xcbincludedir@
|
||||
pythondir=${pc_sysrootdir}@pythondir@
|
||||
|
||||
Name: XCB Proto
|
||||
Description: X protocol descriptions for XCB
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue