[Spice-commits] meson.build
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Apr 22 08:16:10 UTC 2020
meson.build | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
New commits:
commit d3eb1499175a4d61de58477c6e2a653e775b6699
Author: Frediano Ziglio <freddy77 at gmail.com>
Date: Wed Apr 22 07:44:02 2020 +0100
Do not build USB redirection on big endian machines
usbredir only supports little endian, using on big endian machine
won't work causing crashes.
Signed-off-by: Frediano Ziglio <freddy77 at gmail.com>
Acked-by: Francesco Giudici <fgiudici at redhat.com>
diff --git a/meson.build b/meson.build
index 91c6ec2..4177ce6 100644
--- a/meson.build
+++ b/meson.build
@@ -186,9 +186,14 @@ d1 = dependency('libusbredirparser-0.5', version: usbredir_version_info, require
d2 = dependency('libusbredirhost', version: usbredir_version_info, required : get_option('usbredir'))
d3 = dependency('libusb-1.0', version : '>= 1.0.21', required : get_option('usbredir'))
if d1.found() and d2.found() and d3.found()
- spice_glib_deps += [d1, d2, d3]
- spice_gtk_config_data.set('USE_USBREDIR', '1')
- spice_gtk_has_usbredir = true
+ if target_machine.endian() == 'little'
+ spice_glib_deps += [d1, d2, d3]
+ spice_gtk_config_data.set('USE_USBREDIR', '1')
+ spice_gtk_has_usbredir = true
+ else
+ warning('USB redirection disabled on big endian machine as ' +
+ 'usbredir only support little endian')
+ endif
endif
d = dependency('libcap-ng', required : get_option('libcap-ng'))
More information about the Spice-commits
mailing list