[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] meson: always include contrib/libvhost-user
From: |
Michael S. Tsirkin |
Subject: |
Re: [PATCH] meson: always include contrib/libvhost-user |
Date: |
Sat, 7 Nov 2020 03:53:58 -0500 |
On Fri, Nov 06, 2020 at 09:03:40PM +0000, Stefan Hajnoczi wrote:
> libvhost-user is needed when CONFIG_LINUX is set. The CONFIG_VHOST_USER
> check in meson.build is incorrect.
>
> In fact, no explicit check is needed since this dependency is not built
> by default. If something declares a dependency on libvhost-user then it
> will be built, otherwise it won't be built (i.e. on non-Linux hosts).
>
> This fixes ./configure --disable-vhost-user && make.
>
> Fixes: bc15e44cb2191bbb2318878acdf5038134e56394 ("configure: introduce
> --enable-vhost-user-blk-server")
> Reported-by: Philippe Mathieu-Daudé <philmd@redhat.com>
> Reported-by: Michael S. Tsirkin <mst@redhat.com>
> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Applied, thanks!
It's probably time to move libvhost-user out of contrib.
> ---
> meson.build | 6 +-----
> 1 file changed, 1 insertion(+), 5 deletions(-)
>
> diff --git a/meson.build b/meson.build
> index f5175010df..b473620321 100644
> --- a/meson.build
> +++ b/meson.build
> @@ -1450,11 +1450,7 @@ trace_events_subdirs += [
> 'util',
> ]
>
> -vhost_user = not_found
> -if 'CONFIG_VHOST_USER' in config_host
> - subdir('contrib/libvhost-user')
> -endif
> -
> +subdir('contrib/libvhost-user')
> subdir('qapi')
> subdir('qobject')
> subdir('stubs')
> --
> 2.28.0
>