[PATCH] configure: get correct paths from xcb-proto when crosscompiling
Rolf Eike Beer <[email protected]>
| Newsgroups | gmane.comp.freedesktop.xcb |
|---|---|
| Organization | emlix GmbH |
| Message-ID | <20827014.uW2evYviLO@devpool21> |
From e1f9ebb603999158317f7b80dd05ba9b7970de22 Mon Sep 17 00:00:00 2001 From: Rolf Eike Beer <[email protected]> Date: Tue, 4 Jul 2017 15:35:41 +0200 Subject: [PATCH] configure: get correct paths from xcb-proto when crosscompiling When PKG_CONFIG_SYSROOT_DIR is set library and include paths queried from pkg-config are automatically rewritten to be relative to the given path. This does not apply to any variable queried explicitely using "--variable=". Add the prefix by hand to get the correct paths when cross compiling. This seems to affect e.g. yocto, too, as they ship a similar patch for years: https://github.com/djdeath/yocto-iot/blob/master/meta/recipes-graphics/xcb/libxcb/xcbincludedir.patch Signed-off-by: Rolf Eike Beer <[email protected]> --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index a6ec8c1..0b2dc5d 100644 --- a/configure.ac +++ b/configure.ac @@ -72,7 +72,7 @@ AC_SUBST(NEEDED) # Find the xcb-proto protocol descriptions AC_MSG_CHECKING(XCBPROTO_XCBINCLUDEDIR) -XCBPROTO_XCBINCLUDEDIR=`$PKG_CONFIG --variable=xcbincludedir xcb-proto` +XCBPROTO_XCBINCLUDEDIR=${PKG_CONFIG_SYSROOT_DIR}`$PKG_CONFIG --variable=xcbincludedir xcb-proto` AC_MSG_RESULT($XCBPROTO_XCBINCLUDEDIR) AC_SUBST(XCBPROTO_XCBINCLUDEDIR) @@ -82,7 +82,7 @@ AC_SUBST(XCBPROTO_VERSION) # Find the xcbgen Python package AC_MSG_CHECKING(XCBPROTO_XCBPYTHONDIR) -XCBPROTO_XCBPYTHONDIR=`$PKG_CONFIG --variable=pythondir xcb-proto` +XCBPROTO_XCBPYTHONDIR=${PKG_CONFIG_SYSROOT_DIR}`$PKG_CONFIG --variable=pythondir xcb-proto` AC_MSG_RESULT($XCBPROTO_XCBPYTHONDIR) AC_SUBST(XCBPROTO_XCBPYTHONDIR) -- 2.13.2 -- Rolf Eike Beer, emlix GmbH, http://www.emlix.com Fon +49 551 30664-0, Fax +49 551 30664-11 Bertha-von-Suttner-Str. 9, 37085 Göttingen, Germany Sitz der Gesellschaft: Göttingen, Amtsgericht Göttingen HR B 3160 Geschäftsführung: Heike Jordan, Dr. Uwe Kracke – Ust-IdNr.: DE 205 198 055 emlix – smart embedded open source _______________________________________________ Xcb mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/xcb