summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2019-01-17 02:52:47 +0400
committerMarc-André Lureau <marcandre.lureau@redhat.com>2019-01-17 12:46:23 +0400
commit0a753b93b50b548a2ac04023c96a7cda83f204bf (patch)
tree028d02805725abcc6965397e51b8aaf888a5527f
parent6c09f943ce7b7531640fc604574b62536bfe4053 (diff)
meson: fix building for big-endian hostHEADmaster
autofoo build-sys defines WORDS_BIGENDIAN, and spice-common code uses it. Later, I think it would make sense to switch to G_BIG_ENDIAN instead. Fixes: https://gitlab.freedesktop.org/spice/spice-common/issues/2 Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Acked-by: Victor Toso <victortoso@redhat.com>
-rw-r--r--meson.build3
1 files changed, 3 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 049409b..8579680 100644
--- a/meson.build
+++ b/meson.build
@@ -33,6 +33,9 @@ spice_common_config_data = configuration_data()
if get_option('extra-checks')
spice_common_config_data.set('ENABLE_EXTRA_CHECKS', '1')
endif
+if host_machine.endian() == 'big'
+ spice_common_config_data.set('WORDS_BIGENDIAN', '1')
+endif
spice_common_generate_code = get_option('generate-code')
spice_common_generate_client_code = spice_common_generate_code == 'all' or spice_common_generate_code == 'client'