Hi,

SDL 1.2.14 ships with a "configure" script generated by autoconf 2.63. When 
I compile SDL with "-arch ppc" in the CFLAGS, ac_cv_c_bigendian will be set 
to "universal". SDL can only handle "yes" and "no" and will treat 
"universal" as little endian. This then leads to pixels having the wrong 
color because the byte order is reversed.

I can imagine it's a good idea to return "universal" if one GCC invocation 
is used to compile for two architectures. But when compiling for a single 
architecture (one "-arch" argument) it would make more sense to use the 
usual endianess detection. SDL 1.2.13 ships with a "configure" script 
generated by autoconf 2.61, which does not check for "-arch" arguments and 
detects the PPC endianess correctly.

Bye,
                Maarten

Reply via email to