AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
October 2007

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2007.10.23 08:38 "universal build patch", by Kai-uwe Behrmann
2007.10.23 15:37 "Re: universal build patch", by Bob Friesenhahn
2007.10.23 15:50 "Re: universal build patch", by Andrey Kiselev
2007.10.23 16:12 "Re: universal build patch", by Bob Friesenhahn
2007.10.23 19:17 "Re: universal build patch", by Andrey Kiselev
2007.10.23 20:44 "Re: universal build patch", by Bob Friesenhahn
2007.10.24 07:19 "Re: universal build patch", by Andrey Kiselev
2007.10.24 08:32 "Re: universal build patch", by Kai-uwe Behrmann
2007.10.24 11:26 "Re: universal build patch", by Andrey Kiselev
2007.10.24 15:44 "Re: universal build patch", by Bob Friesenhahn
2007.10.23 20:56 "Re: universal build patch", by Toby Thain

2007.10.23 15:50 "Re: 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