mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-common
synced 2026-08-07 17:43:58 +00:00
meson: fix building for big-endian host
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>
This commit is contained in:
parent
6c09f943ce
commit
0a753b93b5
@ -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'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user