qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFC PATCH] meson.build: don't include libbpf in the common source s


From: Paolo Bonzini
Subject: Re: [RFC PATCH] meson.build: don't include libbpf in the common source set
Date: Tue, 5 Oct 2021 21:27:19 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.0

On 05/10/21 20:24, Alex Bennée wrote:
This library is only needed for the softmmu targets and as such
break static *-user builds where libbpf is detected and it tries to
link it into the user binaries.

Fixes: 46627f41b6 ("ebpf: Added eBPF RSS loader.")
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
  meson.build | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index 60f4f45165..d8bcf13b21 100644
--- a/meson.build
+++ b/meson.build
@@ -2307,7 +2307,7 @@ subdir('bsd-user')
  subdir('linux-user')
  subdir('ebpf')
-common_ss.add(libbpf)
+softmmu_ss.add(libbpf)

It should not be needed at all, since ebpf/meson.build has

softmmu_ss.add(when: libbpf, if_true: files('ebpf_rss.c'), if_false: files('ebpf_rss-stub.c'))

(which already adds libbpf if needed).

Paolo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]