summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/mesa/qemugl/versionfix.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-graphics/mesa/qemugl/versionfix.patch')
-rw-r--r--meta/recipes-graphics/mesa/qemugl/versionfix.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/meta/recipes-graphics/mesa/qemugl/versionfix.patch b/meta/recipes-graphics/mesa/qemugl/versionfix.patch
new file mode 100644
index 0000000000..a3d33e8303
--- /dev/null
+++ b/meta/recipes-graphics/mesa/qemugl/versionfix.patch
@@ -0,0 +1,30 @@
1Index: git/Makefile
2===================================================================
3--- git.orig/Makefile 2009-01-19 23:37:36.000000000 +0000
4+++ git/Makefile 2009-06-09 20:30:37.000000000 +0100
5@@ -1,9 +1,9 @@
6 GL_CFLAGS := -Wall -g -O2 -fno-strict-aliasing
7
8-all: libGL.so
9+all: libGL.so.1.2
10
11-libGL.so: client_stub.c opengl_client.c glgetv_cst.h opengl_func.h opengl_utils.h opengl_client_xfonts.c mesa_gl.h mesa_glext.h mesa_glx.h mesa_glxext.h
12- $(CC) -fPIC $(GL_CFLAGS) opengl_client.c -shared -o libGL.so -lX11 -lXfixes -lm -L$(D)/usr/X11R6/lib -lpthread -I.
13+libGL.so.1.2: client_stub.c opengl_client.c glgetv_cst.h opengl_func.h opengl_utils.h opengl_client_xfonts.c mesa_gl.h mesa_glext.h mesa_glx.h mesa_glxext.h
14+ $(CC) -fPIC $(GL_CFLAGS) opengl_client.c -shared -o libGL.so.1.2 -lX11 -lXfixes -lm -L$(D)/usr/X11R6/lib -lpthread -I.
15
16 opengl_func.h: gl_func.h
17
18Index: git/opengl_client.c
19===================================================================
20--- git.orig/opengl_client.c 2009-06-09 21:07:15.000000000 +0100
21+++ git/opengl_client.c 2009-06-09 21:07:33.000000000 +0100
22@@ -11578,7 +11578,7 @@
23 tab_assoc = calloc(tabSize, sizeof(AssocProcAdress));
24
25 #ifndef WIN32
26- handle = dlopen(getenv("REAL_LIBGL") ? getenv("REAL_LIBGL") : "libGL.so" ,RTLD_LAZY);
27+ handle = dlopen(getenv("REAL_LIBGL") ? getenv("REAL_LIBGL") : "libGL.so.1.2" ,RTLD_LAZY);
28 if (!handle) {
29 log_gl("%s\n", dlerror());
30 exit(1);