We know that dbus is not fully strict-aliasing-compliant. In Autotools
we got this from AX_COMPILER_FLAGS_CFLAGS.
Signed-off-by: Simon McVittie <smcv@collabora.com>
'-D_GNU_SOURCE',
]
+# dbus makes assumptions about aliasing that Standard C does not guarantee,
+# particularly in DBusString.
+# See https://gitlab.freedesktop.org/dbus/dbus/-/issues/4
+compile_args += ['-fno-strict-aliasing']
+
if host_os.contains('solaris')
compile_args += [
# Solaris' C library apparently needs these runes to be threadsafe...