Jan Kiszka wrote: > > #! /bin/sh > > exec `expr "$0" : 'i686-linux-\(.*\)'` -m32r ${1+"$@"} > > > > It should work with most build systems... > > > > Yes, this seems to work (and fail) just like the "CC=" approach.
Are you sure your distribution does not provide a cross-compiler ? I worked once on an x86_64 with Fedora Core installed. And there was an i386-linux-gcc, but it needed a special package. -- Gilles Chanteperdrix.