2007.10.23 08:38 "[Tiff] universal build patch", by Kai-Uwe Behrmann

2007.10.23 15:50 "Re: [Tiff] universal build patch", by Andrey Kiselev

Apple recommends the following approach:

"If you are compiling a project that uses GNU Autoconf and trying to build it for both PowerPC-based and Intel-based Macintosh computers, you need to make sure that when the project configures itself, it doesn't use Autoconf macros to determine the endian type of the runtime system. For example, if your project uses the Autoconf AC_C_BIGENDIAN macro, the program won't work correctly when it is run on the opposite architecture from the one you are targeting when you configure the project. To correctly build for both PowerPC-based and Intel-based Macintosh computers, use the compiler-defined __BIG_ENDIAN__ and __LITTLE_ENDIAN__ macros in your code."

Quoted from this source:

 http://devworld.apple.com/documentation//MacOSX/Conceptual/universal_binary/index.html?http://devworld.apple.com/documentation//MacOSX/Conceptual/universal_binary/universal_binary_diffs/chapter_3_section_2.html

We can easily switch to this method instead of autoconf macro. I am only concerning about portability of this approach.

Best regards,

Andrey

--
Andrey V. Kiselev
ICQ# 26871517