meson: Add missing libdw knobs

Add the missing meson infrastructure bits for the new libdw
dependency. Model them after the existing capstone knobs.

Fixes: 7c10cb38cc ("accel/tcg: Add debuginfo support")
Reported-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20230210005208.438142-1-iii@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
Ilya Leoshkevich 2023-02-10 01:52:07 +01:00 committed by Thomas Huth
parent 74a1b256d7
commit bc71d58fd7
3 changed files with 12 additions and 4 deletions

View file

@ -1649,10 +1649,13 @@ if libbpf.found() and not cc.links('''
endif
# libdw
libdw = dependency('libdw',
method: 'pkg-config',
kwargs: static_kwargs,
required: false)
libdw = not_found
if not get_option('libdw').auto() or have_system or have_user
libdw = dependency('libdw',
method: 'pkg-config',
kwargs: static_kwargs,
required: get_option('libdw'))
endif
#################
# config-host.h #