diff options
Diffstat (limited to 'meta/recipes-graphics/mesa/mesa/0001-Add-MESA_EGL_NO_X11_HEADERS-to-defines.patch')
-rw-r--r-- | meta/recipes-graphics/mesa/mesa/0001-Add-MESA_EGL_NO_X11_HEADERS-to-defines.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/meta/recipes-graphics/mesa/mesa/0001-Add-MESA_EGL_NO_X11_HEADERS-to-defines.patch b/meta/recipes-graphics/mesa/mesa/0001-Add-MESA_EGL_NO_X11_HEADERS-to-defines.patch new file mode 100644 index 0000000000..c66bf17f09 --- /dev/null +++ b/meta/recipes-graphics/mesa/mesa/0001-Add-MESA_EGL_NO_X11_HEADERS-to-defines.patch | |||
@@ -0,0 +1,41 @@ | |||
1 | From 63d5b4ec7a5853bbbae2e1963d406bb09e77dd60 Mon Sep 17 00:00:00 2001 | ||
2 | From: Valentin Popa <valentin.popa@intel.com> | ||
3 | Date: Thu, 27 Feb 2014 10:32:17 +0200 | ||
4 | Subject: [PATCH] Add MESA_EGL_NO_X11_HEADERS to defines | ||
5 | |||
6 | MESA_EGL_NO_X11_HEADERS is used in eglplatform.h | ||
7 | but the preprocessor doesn't know about it. | ||
8 | Define MESA_EGL_NO_X11_HEADERS for builds without | ||
9 | x11 in DISTRO_FEATURES. | ||
10 | |||
11 | Backport from 9.2.5. | ||
12 | |||
13 | Upstream-Status: Backport | ||
14 | |||
15 | Signed-off-by: Valentin Popa <valentin.popa@intel.com> | ||
16 | --- | ||
17 | configure.ac | 8 ++++++++ | ||
18 | 1 file changed, 8 insertions(+) | ||
19 | |||
20 | diff --git a/configure.ac b/configure.ac | ||
21 | index 2acf579..a1a8487 100644 | ||
22 | --- a/configure.ac | ||
23 | +++ b/configure.ac | ||
24 | @@ -1568,6 +1568,14 @@ AC_SUBST([EGL_NATIVE_PLATFORM]) | ||
25 | AC_SUBST([EGL_PLATFORMS]) | ||
26 | AC_SUBST([EGL_CFLAGS]) | ||
27 | |||
28 | +# If we don't have the X11 platform, set this define so we don't try | ||
29 | +# to include | ||
30 | +# the X11 headers. | ||
31 | +if ! echo "$egl_platforms" | grep -q 'x11'; then | ||
32 | + DEFINES="$DEFINES -DMESA_EGL_NO_X11_HEADERS" | ||
33 | + GL_PC_CFLAGS="$GL_PC_CFLAGS -DMESA_EGL_NO_X11_HEADERS" | ||
34 | +fi | ||
35 | + | ||
36 | AC_ARG_WITH([egl-driver-dir], | ||
37 | [AS_HELP_STRING([--with-egl-driver-dir=DIR], | ||
38 | [directory for EGL drivers [[default=${libdir}/egl]]])], | ||
39 | -- | ||
40 | 1.8.3.2 | ||
41 | |||