diff options
Diffstat (limited to 'meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite/fix_macros.patch')
-rw-r--r-- | meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite/fix_macros.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite/fix_macros.patch b/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite/fix_macros.patch new file mode 100644 index 0000000000..eed491b4d9 --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-xf86-dri-lite/fix_macros.patch | |||
@@ -0,0 +1,21 @@ | |||
1 | We need to insert the sysroot path into compiler commandlines for this | ||
2 | kind of variable use, otherwise we're looking into /usr/include/. | ||
3 | |||
4 | RP - 26/11/09 | ||
5 | |||
6 | Index: git/xorg-server.m4 | ||
7 | =================================================================== | ||
8 | --- git.orig/xorg-server.m4 2009-11-10 12:04:34.000000000 +0000 | ||
9 | +++ git/xorg-server.m4 2009-11-27 00:05:02.000000000 +0000 | ||
10 | @@ -28,9 +28,10 @@ | ||
11 | # Checks for the $1 define in xorg-server.h (from the sdk). If it | ||
12 | # is defined, then add $1 to $REQUIRED_MODULES. | ||
13 | |||
14 | +m4_pattern_allow([^PKG_CONFIG_SYSROOT_DIR$]) | ||
15 | AC_DEFUN([XORG_DRIVER_CHECK_EXT],[ | ||
16 | SAVE_CFLAGS="$CFLAGS" | ||
17 | - CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" | ||
18 | + CFLAGS="$CFLAGS -I$PKG_CONFIG_SYSROOT_DIR`pkg-config --variable=sdkdir xorg-server`" | ||
19 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ | ||
20 | #include "xorg-server.h" | ||
21 | #if !defined $1 | ||