diff options
author | Daniel Stone <daniels@collabora.com> | 2017-09-27 18:16:22 +0100 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2019-04-27 22:12:10 +0100 |
commit | bd7a481a3bee9283277badda95730f52185127bc (patch) | |
tree | a926c73c7e8cb1bc926f3a114c9dfbb2aa8e72d3 | |
parent | dbf346502a31c3629b2c597711fb4b0ea6521de6 (diff) | |
download | xcb-proto-bd7a481a3bee9283277badda95730f52185127bc.tar.gz |
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>
-rw-r--r-- | xcb-proto.pc.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xcb-proto.pc.in b/xcb-proto.pc.in index d312e6e..a35f0bd 100644 --- a/xcb-proto.pc.in +++ b/xcb-proto.pc.in @@ -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 |