[PATCH wayland v1 1/1] wayland-scanner.pc.in: prepend pc_sysrootdir

Joe Konno joe.konno at linux.intel.com
Thu Sep 15 22:22:12 UTC 2016


From: Joe Konno <joe.konno at intel.com>

In a cross-compilation environment with packages depending on
wayland-scanner, ensure the path to wayland-scanner is correct. Without
this patch, the path will _not_ point to the target environment but to
the host's, potentially leading to breakage.

https://bugs.freedesktop.org/show_bug.cgi?id=97828

Signed-off-by: Joe Konno <joe.konno at intel.com>
---
 src/wayland-scanner.pc.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/wayland-scanner.pc.in b/src/wayland-scanner.pc.in
index 7b2a4c92e0e3..ec11a0bc982c 100644
--- a/src/wayland-scanner.pc.in
+++ b/src/wayland-scanner.pc.in
@@ -2,7 +2,7 @@ prefix=@prefix@
 exec_prefix=@exec_prefix@
 datarootdir=@datarootdir@
 pkgdatadir=@datadir@/@PACKAGE@
-wayland_scanner=@bindir@/wayland-scanner
+wayland_scanner=${pc_sysrootdir}/@bindir@/wayland-scanner
 
 Name: Wayland Scanner
 Description: Wayland scanner
-- 
1.8.3.1



More information about the wayland-devel mailing list