[Mesa-dev] [PATCH] gen_matypes: fix cross-compiling with gcc

Eric Anholt eric at anholt.net
Tue Feb 5 00:02:09 PST 2013


Mike Frysinger <vapier at gentoo.org> writes:

> The current gen_matypes logic assumes that the host compiler will produce
> information that is useful for the target compiler.  Unfortunately, this
> is not the case whenever cross-compiling.
>
> When we detect that we're cross-compiling and using GCC, use the target
> compiler to produce assembly from the gen_matypes.c source, then process
> it with a shell script to create a usable header.  This is similar to how
> the linux kernel creates its asm-offsets.c file.

Oh, cool.  But is there any reason to keep producing gen_matypes as a
binary instead of just always using this script?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20130205/18d46dd9/attachment.pgp>


More information about the mesa-dev mailing list