summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/xorg-lib/libxcb/xcbincludedir.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-graphics/xorg-lib/libxcb/xcbincludedir.patch')
-rw-r--r--meta/recipes-graphics/xorg-lib/libxcb/xcbincludedir.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/meta/recipes-graphics/xorg-lib/libxcb/xcbincludedir.patch b/meta/recipes-graphics/xorg-lib/libxcb/xcbincludedir.patch
new file mode 100644
index 0000000000..46297c33c3
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libxcb/xcbincludedir.patch
@@ -0,0 +1,28 @@
1As pkg-config --variable doesn't respect the sysroot, add the pkg-config sysroot
2to the beginning of variables that are used later on the host.
3
4Upstream-Status: Pending
5Signed-off-by: Ross Burton <ross.burton@intel.com>
6
7diff --git a/configure.ac b/configure.ac
8index 94da4f7..d29cd6a 100644
9--- a/configure.ac
10+++ b/configure.ac
11@@ -64,7 +64,7 @@ AC_SUBST(NEEDED)
12
13 # Find the xcb-proto protocol descriptions
14 AC_MSG_CHECKING(XCBPROTO_XCBINCLUDEDIR)
15-XCBPROTO_XCBINCLUDEDIR=`$PKG_CONFIG --variable=xcbincludedir xcb-proto`
16+XCBPROTO_XCBINCLUDEDIR=$PKG_CONFIG_SYSROOT_DIR/`$PKG_CONFIG --variable=xcbincludedir xcb-proto`
17 AC_MSG_RESULT($XCBPROTO_XCBINCLUDEDIR)
18 AC_SUBST(XCBPROTO_XCBINCLUDEDIR)
19
20@@ -74,7 +74,7 @@ AC_SUBST(XCBPROTO_VERSION)
21
22 # Find the xcbgen Python package
23 AC_MSG_CHECKING(XCBPROTO_XCBPYTHONDIR)
24-XCBPROTO_XCBPYTHONDIR=`$PKG_CONFIG --variable=pythondir xcb-proto`
25+XCBPROTO_XCBPYTHONDIR=$PKG_CONFIG_SYSROOT_DIR/`$PKG_CONFIG --variable=pythondir xcb-proto`
26 AC_MSG_RESULT($XCBPROTO_XCBPYTHONDIR)
27 AC_SUBST(XCBPROTO_XCBPYTHONDIR)
28