summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/mesa/mesa-dri/cross2.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-graphics/mesa/mesa-dri/cross2.patch')
-rw-r--r--meta/recipes-graphics/mesa/mesa-dri/cross2.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/meta/recipes-graphics/mesa/mesa-dri/cross2.patch b/meta/recipes-graphics/mesa/mesa-dri/cross2.patch
new file mode 100644
index 0000000000..d2147910ae
--- /dev/null
+++ b/meta/recipes-graphics/mesa/mesa-dri/cross2.patch
@@ -0,0 +1,44 @@
1Index: git/configure.ac
2===================================================================
3--- git.orig/configure.ac 2009-09-01 16:38:26.000000000 +0100
4+++ git/configure.ac 2009-09-01 16:38:47.000000000 +0100
5@@ -269,15 +269,6 @@
6 GLAPI_ASM_SOURCES=""
7 AC_MSG_CHECKING([whether to enable assembly])
8 test "x$enable_asm" = xno && AC_MSG_RESULT([no])
9-# disable if cross compiling on x86/x86_64 since we must run gen_matypes
10-if test "x$enable_asm" = xyes && test "x$cross_compiling" = xyes; then
11- case "$host_cpu" in
12- i?86 | x86_64)
13- enable_asm=no
14- AC_MSG_RESULT([no, cross compiling])
15- ;;
16- esac
17-fi
18 # check for supported arches
19 if test "x$enable_asm" = xyes; then
20 case "$host_cpu" in
21Index: git/src/mesa/x86/Makefile
22===================================================================
23--- git.orig/src/mesa/x86/Makefile 2009-09-01 16:40:02.000000000 +0100
24+++ git/src/mesa/x86/Makefile 2009-09-01 16:40:13.000000000 +0100
25@@ -14,19 +14,6 @@
26 -I../tnl
27
28
29-default: gen_matypes matypes.h
30-
31-clean:
32- -rm -f matypes.h gen_matypes
33-
34-
35-gen_matypes: gen_matypes.c
36- $(HOST_CC) $(ARCH_FLAGS) $(INCLUDE_DIRS) $(HOST_CFLAGS) gen_matypes.c -o gen_matypes
37-
38-# need some special rules here, unfortunately
39-matypes.h: ../main/mtypes.h ../tnl/t_context.h gen_matypes
40- ./gen_matypes > matypes.h
41-
42 common_x86_asm.o: matypes.h
43 3dnow_normal.o: matypes.h
44 3dnow_xform1.o: matypes.h