aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/libsdl-ttf/libsdl2-ttf/0001-Make-sure-we-can-link-with-OpenGL-libraries-in-the-O.patch
blob: cee12cb75e4cde9add95260e3d6ca96c1d77a878 (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
33
34
35
36
37
38
39
40
41
Upstream-Status: backport [hg]

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>

From 36ebb6865e420014bf039ea63f2259af14e2e941 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <slouken@libsdl.org>
Date: Fri, 27 Jan 2017 17:54:34 -0800
Subject: [PATCH] Make sure we can link with OpenGL libraries in the OpenGL
 configure test

---
 configure.in |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/configure.in b/configure.in
index 9b36e15..9db85a6 100644
--- a/configure.in
+++ b/configure.in
@@ -164,14 +164,17 @@ case "$host" in
 esac
 AC_MSG_CHECKING(for OpenGL support)
 have_opengl=no
-AC_TRY_COMPILE([
+save_LIBS="$LIBS"
+LIBS="$LIBS $SYS_GL_LIBS"
+AC_TRY_LINK([
  #include "SDL_opengl.h"
 ],[
- GLuint texture;
+ glOrtho( -2.0, 2.0, -2.0, 2.0, -20.0, 20.0 );
 ],[
 have_opengl=yes
 ])
 AC_MSG_RESULT($have_opengl)
+LIBS="$save_LIBS"
 if test x$have_opengl = xyes; then
     CFLAGS="$CFLAGS -DHAVE_OPENGL"
     GL_LIBS="$SYS_GL_LIBS"
-- 
2.7.4