[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
"universal" returned by AC_C_BIGENDIAN when compiling for a single archi
From: |
Maarten ter Huurne |
Subject: |
"universal" returned by AC_C_BIGENDIAN when compiling for a single architecture |
Date: |
Sun, 6 Jun 2010 19:48:56 +0200 |
User-agent: |
KMail/1.13.3 (Linux/2.6.31.12-0.2-default; KDE/4.4.3; x86_64; ; ) |
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
- "universal" returned by AC_C_BIGENDIAN when compiling for a single architecture,
Maarten ter Huurne <=