[glib] docs: Mention that we build with strict-aliasing disabled
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] docs: Mention that we build with strict-aliasing disabled
- Date: Mon, 8 Jan 2018 12:01:33 +0000 (UTC)
commit e42ff0105d19be382f6c4e460c46ac9e18f92b25
Author: Philip Withnall <withnall endlessm com>
Date: Mon Jan 8 12:00:39 2018 +0000
docs: Mention that we build with strict-aliasing disabled
Hopefully discouraging people from overriding that and building with it
enabled.
Pro-tip: GLib will break.
Signed-off-by: Philip Withnall <withnall endlessm com>
https://bugzilla.gnome.org/show_bug.cgi?id=791622
docs/reference/glib/building.xml | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/docs/reference/glib/building.xml b/docs/reference/glib/building.xml
index 1652add..57c3c8c 100644
--- a/docs/reference/glib/building.xml
+++ b/docs/reference/glib/building.xml
@@ -42,6 +42,13 @@
the standard options.
</para>
<para>
+ GLib is compiled with
+ <ulink url="https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html#index-fstrict-aliasing">strict
aliasing</ulink>
+ disabled. It is strongly recommended that this is not re-enabled by
+ overriding the compiler flags, as GLib has not been tested with strict
+ aliasing and cannot be guaranteed to work.
+ </para>
+ <para>
The GTK+ documentation contains
<ulink url="https://developer.gnome.org/gtk3/stable/gtk-building.html">further details</ulink>
about the build process and ways to influence it.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]