blob: 12a6c06e82d5012610725f00766735c2a1ab3a80 [file] [log] [blame]
Brad Bishop6e60e8b2018-02-01 10:27:11 -05001From 21524598110e7a55113205dda4bc1a6d5987111c Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 9 May 2017 06:41:33 +0000
4Subject: [PATCH] change order of detecting libegl and libgles2
5
6This actually helps building it on rpi/userland
7where libEGL depends on few functions from libGLESv2
8see
9https://www.raspberrypi.org/forums/viewtopic.php?t=7090
10
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12---
13 configure.ac | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16diff --git a/configure.ac b/configure.ac
17index b9e4240..1ca0297 100644
18--- a/configure.ac
19+++ b/configure.ac
20@@ -951,8 +951,8 @@ if test "$use_gles" = "yes"; then
21 AC_MSG_RESULT(== WARNING: OpenGLES support is assumed.)
22 LIBS="$LIBS -lEGL -lGLESv2 -lbcm_host -lvcos -lvchiq_arm -lmmal -lmmal_core -lmmal_util -lvcsm"
23 else
24- AC_CHECK_LIB([EGL], [main],, AC_MSG_ERROR($missing_library))
25 AC_CHECK_LIB([GLESv2],[main],, AC_MSG_ERROR($missing_library))
26+ AC_CHECK_LIB([EGL], [main],, AC_MSG_ERROR($missing_library))
27 fi
28 fi
29 else
30--
311.9.1
32