Alex Neundorf wrote:


On 10/15/07, *Brian Paul* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

    Alex Neundorf wrote:
     > Hi,
     >
     > I found a problem when cross compiling mesa.
     > For x86 there is an executable gen_matypes created and executed. This
     > executable is created with the same compiler which is used for
    all the
     > rest. When cross compiling this compiler is a cross compiler and so
     > gen_matypes can't run.
     >
     > Is there already some way to get it working when cross compiling
    or do
     > I need to do the work myself ?

    Cross compiling Mesa is uncommon so I think you'll just have to find a
    work-around yourself.

    -Brian



Is gen_matypes the only executable which is built duing the build and executed ? Is there a way to build mesa without ?

gen_matypes is only needed for builds that use x86 assembly code.

I'm attaching a patch for src/mesa/Makefile that will skip the x86 and x86-64 subdirs when not needed. Can you give it a try?

-Brian

diff --git a/src/mesa/Makefile b/src/mesa/Makefile
index a47cd4c..3722593 100644
--- a/src/mesa/Makefile
+++ b/src/mesa/Makefile
@@ -153,8 +153,13 @@ depend: $(ALL_SOURCES)
 
 
 subdirs:
-	@ (cd x86 ; $(MAKE))
-	@ (cd x86-64 ; $(MAKE))
+	@ if [ `echo $(ASM_FLAGS) | grep USE_X86_ASM` ] ; then \
+		(cd x86 ; $(MAKE)) ; \
+	fi
+	@ if [ `echo $(ASM_FLAGS) | grep USE_X86_64_ASM` ] ; then \
+		(cd x86 ; $(MAKE)) ; \
+		(cd x86-64 ; $(MAKE)) ; \
+	fi
 
 
 install: default gl.pc
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to