summaryrefslogtreecommitdiffstats
path: root/meta/packages/xorg-xserver/xserver-xf86-dri-lite/fix_macros.patch
blob: eed491b4d94e7db6b41e19214a5911f24e6f14b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
We need to insert the sysroot path into compiler commandlines for this
kind of variable use, otherwise we're looking into /usr/include/.

RP - 26/11/09

Index: git/xorg-server.m4
===================================================================
--- git.orig/xorg-server.m4	2009-11-10 12:04:34.000000000 +0000
+++ git/xorg-server.m4	2009-11-27 00:05:02.000000000 +0000
@@ -28,9 +28,10 @@
 # Checks for the $1 define in xorg-server.h (from the sdk).  If it
 # is defined, then add $1 to $REQUIRED_MODULES.
 
+m4_pattern_allow([^PKG_CONFIG_SYSROOT_DIR$])
 AC_DEFUN([XORG_DRIVER_CHECK_EXT],[
 	SAVE_CFLAGS="$CFLAGS"
-	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
+	CFLAGS="$CFLAGS -I$PKG_CONFIG_SYSROOT_DIR`pkg-config --variable=sdkdir xorg-server`"
 	AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
 #include "xorg-server.h"
 #if !defined $1