[New-bugs-announce] [issue4728] Endianness and universal builds problems
Cournapeau David
report at bugs.python.org
Tue Dec 23 04:59:56 CET 2008
New submission from Cournapeau David <david at ar.media.kyoto-u.ac.jp>:
I had some problems with python and universal builds related to the
WORDS_BIGENDIAN macro. Because universal builds are built in one pass
(one configure), the AC_C_ENDIAN cannot be used reliably. Example:
int main()
{
#ifdef WORDS_BIGENDIAN
printf("Big endian macro defined\n");
#else
printf("No big endian macro defined\n");
#endif
return 0;
}
If I build this against python 2.5, it prints no big endian macro (I
have an intel CPU), as expected. But with python 2.6.0 (official binary
from python.org), I get Big endian macro defined.
----------
messages: 78224
nosy: cdavid
severity: normal
status: open
title: Endianness and universal builds problems
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4728>
_______________________________________
More information about the New-bugs-announce
mailing list