Support universal builds through __BIG_ENDIAN__ and __LITTLE_ENDIAN__
Submitted by Steffen Gutmann
Link to original bug (#692601)
Description
Created attachment 234497 Proposed patch
On Darwin, Apple provides the BIG_ENDIAN and LITTLE_ENDIAN defines. These allow to select the endianness at compile-time which is necessary when compiling for multiple architectures.
The proposed patch allows the building of universal binaries for Mac OSX.
When neither BIG_ENDIAN nor LITTLE_ENDIAN are defined, we fall back to the endianess determined by the configure script. Thus, the change will not harm the building for any other host.
Patch 234497, "Proposed patch":
0001-Use-the-BIG_ENDIAN-and-LITTLE_ENDIAN-symblos.patch