1 From 7c8f68c5428380b930579dc9ef27c853264448fd Mon Sep 17 00:00:00 2001
2 From: Khem Raj <raj.khem@gmail.com>
3 Date: Mon, 15 May 2017 15:06:11 +0300
4 Subject: [PATCH] Prepend PKG_CONFIG_SYSROOT_DIR to pkg-config output
6 In cross environment we have to prepend the sysroot to the path found by
7 pkgconfig since the path returned from pkgconfig does not have sysroot prefixed
8 it ends up using the files from host system. If build host has wayland installed
9 the build will succeed but if you dont have wayland-protocols installed on build
10 host then it wont find the files on build host
12 This should work ok with non sysrooted builds too since
13 in those cases PKG_CONFIG_SYSROOT_DIR will be empty
15 Upstream-Status: Pending
17 Signed-off-by: Khem Raj <raj.khem@gmail.com>
18 Signed-off-by: Maxin B. John <maxin.john@intel.com>
21 1 file changed, 1 insertion(+), 1 deletion(-)
23 diff --git a/configure.ac b/configure.ac
24 index e307be6..83cdeb0 100644
27 @@ -2272,7 +2272,7 @@ AG_GST_CHECK_FEATURE(WAYLAND, [wayland sink], wayland , [
28 PKG_CHECK_MODULES(WAYLAND, wayland-client >= 1.4.0 libdrm >= 2.4.55 wayland-protocols >= 1.4, [
29 if test "x$wayland_scanner" != "x"; then
31 - AC_SUBST(WAYLAND_PROTOCOLS_DATADIR, `$PKG_CONFIG --variable=pkgdatadir wayland-protocols`)
32 + AC_SUBST(WAYLAND_PROTOCOLS_DATADIR, ${WAYLAND_PROTOCOLS_SYSROOT_DIR}`$PKG_CONFIG --variable=pkgdatadir wayland-protocols`)
34 AC_MSG_RESULT([wayland-scanner is required to build the wayland plugin])