Message50040
Logged In: YES
user_id=580910
I don't know how I managed to do that, but my initial patch misses an
essential bit in pyconfig.h.in:
#ifdef __BIG_ENDIAN__
#define WORDS_BIGENDIAN 1
#else
#ifndef __LITTLE_ENDIAN__
#undef WORDS_BIGENDIAN
#endif
#endif
On non-universal builds or builds for other platforms this is equivalent to the
current version, on the universal build this ensures that pyconfig.h only sets
WORDS_BIGENDIAN during the creation of PPC binaries.
python-universal-2.patch avoids the empty if-statement in configure.in and
includes the pyconfig.h.in change I mentioned above. It also adds a test to
test_capi that checks if sys.byteorder is consistent with WORDS_BIGENDIAN
(the former isn't derived from the latter).
I haven't changed -current-version because I haven't had time to fully check
if that would be safe.
I did verify that --enable-framework and --enable-universalsdk are fully
indepedent. |
|
Date |
User |
Action |
Args |
2007-08-23 15:48:20 | admin | link | issue1471883 messages |
2007-08-23 15:48:20 | admin | create | |
|