xpsb-glx: Fix compile issues on 64 bit machines without 32 bit headers/binaries
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
parent
364aaa6dfa
commit
6b53fbcc20
|
@ -0,0 +1,20 @@
|
|||
Index: mesa/src/mesa/x86/Makefile
|
||||
===================================================================
|
||||
--- mesa.orig/src/mesa/x86/Makefile 2010-10-11 16:34:12.664960996 +0100
|
||||
+++ mesa/src/mesa/x86/Makefile 2010-10-11 16:34:43.854960861 +0100
|
||||
@@ -20,11 +20,12 @@
|
||||
-rm -f matypes.h gen_matypes
|
||||
|
||||
|
||||
-gen_matypes: gen_matypes.c
|
||||
- $(CC) $(INCLUDE_DIRS) $(CFLAGS) gen_matypes.c -o gen_matypes
|
||||
+#gen_matypes: gen_matypes.c
|
||||
+# $(CC) $(INCLUDE_DIRS) $(CFLAGS) gen_matypes.c -o gen_matypes
|
||||
|
||||
# need some special rules here, unfortunately
|
||||
-matypes.h: ../main/mtypes.h ../tnl/t_context.h gen_matypes
|
||||
+matypes.h: ../main/mtypes.h ../tnl/t_context.h
|
||||
+# gen_matypes
|
||||
./gen_matypes > matypes.h
|
||||
|
||||
common_x86_asm.o: matypes.h
|
|
@ -11,11 +11,14 @@ inherit autotools
|
|||
PROVIDES = "virtual/libgl mesa-dri"
|
||||
|
||||
SRC_URI="https://launchpad.net/~gma500/+archive/ppa/+files/xpsb-glx_0.18-0ubuntu1netbook2~1004um1ubuntu1.tar.gz \
|
||||
file://cross-compile.patch;patch=1 \
|
||||
file://libdrmname.patch;patch=1"
|
||||
file://cross-compile.patch \
|
||||
file://libdrmname.patch \
|
||||
file://native-matypes.patch"
|
||||
|
||||
do_configure () {
|
||||
chmod +x autogen.sh && ./autogen.sh && make realclean
|
||||
chmod +x autogen.sh && ./autogen.sh ${CONFIGUREOPTS} && make realclean
|
||||
cd ${S}/src/mesa/x86/
|
||||
${BUILD_CC} -I../../../include/GL -I../../../include -I.. -I../main -I../math -I../glapi -I../tnl -Wall -Wmissing-prototypes -std=c99 -ffast-math -fPIC -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DHAVE_POSIX_MEMALIGN -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -fno-strict-aliasing gen_matypes.c -o gen_matypes
|
||||
}
|
||||
|
||||
do_install() {
|
||||
|
|
Loading…
Reference in New Issue