After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 692601 - Support universal builds through __BIG_ENDIAN__ and __LITTLE_ENDIAN__
Support universal builds through __BIG_ENDIAN__ and __LITTLE_ENDIAN__
Status: RESOLVED OBSOLETE
Product: glib
Classification: Platform
Component: build
unspecified
Other Mac OS
: Normal enhancement
: ---
Assigned To: gtkdev
gtkdev
: 708703 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2013-01-26 20:44 UTC by Steffen Gutmann
Modified: 2018-05-24 14:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch (2.44 KB, patch)
2013-01-26 20:44 UTC, Steffen Gutmann
none Details | Review

Description Steffen Gutmann 2013-01-26 20:44:08 UTC
Created attachment 234497 [details] [review]
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.
Comment 1 Matthias Clasen 2013-11-23 16:10:16 UTC
*** Bug 708703 has been marked as a duplicate of this bug. ***
Comment 2 GNOME Infrastructure Team 2018-05-24 14:57:44 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/glib/issues/659.