Skip to content

Commit 0ba7819

Browse files
elmarcobonzini
authored andcommitted
build-sys: add libvhost-user missing dependencies
This help fixing static compilation issues. Signed-off-by: Marc-André Lureau <[email protected]> Acked-by: Paolo Bonzini <[email protected]> Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent 5fc0617 commit 0ba7819

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

subprojects/libvhost-user/meson.build

+3
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@ project('libvhost-user', 'c',
22
license: 'GPL-2.0-or-later',
33
default_options: ['c_std=gnu99'])
44

5+
threads = dependency('threads')
56
glib = dependency('glib-2.0')
67
inc = include_directories('../../include', '../../linux-headers')
78

89
vhost_user = static_library('vhost-user',
910
files('libvhost-user.c'),
1011
include_directories: inc,
12+
dependencies: threads,
1113
c_args: '-D_GNU_SOURCE')
1214

1315
executable('link-test', files('link-test.c'),
@@ -21,4 +23,5 @@ vhost_user_glib = static_library('vhost-user-glib',
2123
dependencies: glib)
2224

2325
vhost_user_dep = declare_dependency(link_with: vhost_user_glib,
26+
dependencies: glib,
2427
include_directories: include_directories('.'))

0 commit comments

Comments
 (0)