summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorIgor V. Kovalenko <igor.v.kovalenko@gmail.com>2021-06-03 09:43:10 +0300
committerPulseAudio Marge Bot <pulseaudio-maintainers@lists.freedesktop.org>2021-06-03 18:38:06 +0000
commita7d44750af9a7c535ac4bf474d49a7cdc2aab415 (patch)
tree19d3296fd3a66cdd67e0efac930abfe12e58697a /meson.build
parentc09619351209cfc6712eded5c53afbd5d02d4274 (diff)
build-sys: meson: restore big endian detection
Autotools used AC_C_BIGENDIAN to set WORDS_BIGENDIAN, add Meson implementation. Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/572>
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build4
1 files changed, 4 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 255c73a58..fdd8bf655 100644
--- a/meson.build
+++ b/meson.build
@@ -169,6 +169,10 @@ cdata.set('OS_IS_FREEBSD', 0)
platform_socket_dep = []
platform_dep = []
+if host_machine.endian() == 'big'
+ cdata.set('WORDS_BIGENDIAN', 1)
+endif
+
# FIXME: This was not tested. Maybe some flags should better be CFLAGS,
# rather than ending up in the config.h file?
if host_machine.system() == 'darwin'