[oe-commits] org.oe.dev packages/mesa/mesa_6.5.2.bb : Fix a bug in mesa that tries to build a binary

ifaistos commit openembedded-commits at lists.openembedded.org
Thu Jun 7 22:05:34 UTC 2007


packages/mesa/mesa_6.5.2.bb : Fix a bug in mesa that tries to build a binary 
(gen_matypes) used by the host to generate an include file (matypes.h) using target's includes

Author: ifaistos at openembedded.org
Branch: org.openembedded.dev
Revision: 227a7ff0b3203fc47284eb1635d01e103ff664d0
ViewMTN: http://monotone.openembedded.org/revision.psp?id=227a7ff0b3203fc47284eb1635d01e103ff664d0
Files:
1
packages/mesa/mesa-6.5.2/fix-host-compile.patch
packages/mesa/mesa_6.5.2.bb
Diffs:

#
# mt diff -ra4c23f199da95165095d8f9fb852c9b3e90bebff -r227a7ff0b3203fc47284eb1635d01e103ff664d0
#
# 
# 
# add_file "packages/mesa/mesa-6.5.2/fix-host-compile.patch"
#  content [b099c7506653362001d76f153df4dd8e9a295fc6]
# 
# patch "packages/mesa/mesa_6.5.2.bb"
#  from [d348f32f0ec1cf6bf44dcd4b257b348a64c35d4f]
#    to [5e62b8c3dbd22e804ba5d254afa8ce9bb773a6b2]
# 
============================================================
--- packages/mesa/mesa-6.5.2/fix-host-compile.patch	b099c7506653362001d76f153df4dd8e9a295fc6
+++ packages/mesa/mesa-6.5.2/fix-host-compile.patch	b099c7506653362001d76f153df4dd8e9a295fc6
@@ -0,0 +1,30 @@
+--- /src/mesa/x86/orig-Makefile	2005-07-01 04:54:38.000000000 +0300
++++ /src/mesa/x86/Makefile	2007-06-07 21:52:31.000000000 +0300
+@@ -5,6 +5,7 @@
+ 
+ 
+ INCLUDE_DIRS = \
++        -I/usr/include \
+ 	-I$(TOP)/include/GL \
+ 	-I$(TOP)/include \
+ 	-I.. \
+@@ -13,6 +14,10 @@
+ 	-I../glapi \
+ 	-I../tnl
+ 
++OPT_FLAGS_host = -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os
++
++CFLAGS_host = -Wall -Wmissing-prototypes $(OPT_FLAGS_host) $(PIC_FLAGS) $(ARCH_FLAGS) \
++        $(DEFINES) $(ASM_FLAGS) $(X11_INCLUDES) -std=c99 -ffast-math
+ 
+ default: gen_matypes matypes.h
+ 
+@@ -21,7 +26,7 @@
+ 
+ 
+ gen_matypes: gen_matypes.c
+-	$(CC) $(INCLUDE_DIRS) $(CFLAGS) gen_matypes.c -o gen_matypes
++	$(CC) $(INCLUDE_DIRS) $(CFLAGS_host) gen_matypes.c -o gen_matypes
+ 
+ # need some special rules here, unfortunately
+ matypes.h: ../main/mtypes.h ../tnl/t_context.h gen_matypes
============================================================
--- packages/mesa/mesa_6.5.2.bb	d348f32f0ec1cf6bf44dcd4b257b348a64c35d4f
+++ packages/mesa/mesa_6.5.2.bb	5e62b8c3dbd22e804ba5d254afa8ce9bb773a6b2
@@ -1,3 +1,8 @@
-PR = "r0"
+PR = "r1"
 
 include mesa-mesa.inc
+
+SRC_URI_append = " file://fix-host-compile.patch;patch=1 "
+
+
+






More information about the Openembedded-commits mailing list