aboutsummaryrefslogtreecommitdiffstats
path: root/meta-multimedia/recipes-mediacenter/kodi/kodi-17/0001-change-order-of-detecting-libegl-and-libgles2.patch
blob: 12a6c06e82d5012610725f00766735c2a1ab3a80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From 21524598110e7a55113205dda4bc1a6d5987111c Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Tue, 9 May 2017 06:41:33 +0000
Subject: [PATCH] change order of detecting libegl and libgles2

This actually helps building it on rpi/userland
where libEGL depends on few functions from libGLESv2
see
https://www.raspberrypi.org/forums/viewtopic.php?t=7090

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index b9e4240..1ca0297 100644
--- a/configure.ac
+++ b/configure.ac
@@ -951,8 +951,8 @@ if test "$use_gles" = "yes"; then
       AC_MSG_RESULT(== WARNING: OpenGLES support is assumed.)
       LIBS="$LIBS -lEGL -lGLESv2 -lbcm_host -lvcos -lvchiq_arm -lmmal -lmmal_core -lmmal_util -lvcsm"
     else
-      AC_CHECK_LIB([EGL],   [main],, AC_MSG_ERROR($missing_library))
       AC_CHECK_LIB([GLESv2],[main],, AC_MSG_ERROR($missing_library))
+      AC_CHECK_LIB([EGL],   [main],, AC_MSG_ERROR($missing_library))
     fi
   fi
 else
-- 
1.9.1