The patch below allows 32bit builds of Mesa
on 64bit (especially x86_64) systems.
The '-m32' option for gcc/g++ should work with all
versions of gcc >= 3.0 - also on ia32.

Egbert.


Index: configs/linux-dri-x86
===================================================================
RCS file: /cvs/mesa/Mesa/configs/linux-dri-x86,v
retrieving revision 1.9
diff -u -r1.9 linux-dri-x86
--- configs/linux-dri-x86       25 Sep 2004 07:11:12 -0000      1.9
+++ configs/linux-dri-x86       13 Jul 2005 14:36:27 -0000
@@ -10,3 +10,5 @@
 
 ASM_FLAGS = -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM
 ASM_SOURCES = $(X86_SOURCES)
+CC = gcc -m32
+CXX = g++ -m32
Index: src/mesa/drivers/dri/Makefile.template
===================================================================
RCS file: /cvs/mesa/Mesa/src/mesa/drivers/dri/Makefile.template,v
retrieving revision 1.23
diff -u -r1.23 Makefile.template
--- src/mesa/drivers/dri/Makefile.template      28 May 2005 20:17:06 -0000      
1.23
+++ src/mesa/drivers/dri/Makefile.template      13 Jul 2005 14:36:28 -0000
@@ -80,7 +80,7 @@
 
 $(LIBNAME):  $(OBJECTS) $(MESA_MODULES) $(WINOBJ) Makefile 
$(TOP)/src/mesa/drivers/dri/Makefile.template
        rm -f $@ 
-       gcc $(ARCH_FLAGS) -o $@ -shared $(OBJECTS) $(MESA_MODULES) $(WINOBJ) 
$(DRI_LIB_DEPS)
+       $(CC) $(ARCH_FLAGS) -o $@ -shared $(OBJECTS) $(MESA_MODULES) $(WINOBJ) 
$(DRI_LIB_DEPS)
 
 
 $(LIB_DIR)/$(LIBNAME): $(LIBNAME)


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to