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:
parent
74a1b256d7
commit
bc71d58fd7
11
meson.build
11
meson.build
@ -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 #
|
||||
|
@ -131,6 +131,8 @@ option('gio', type : 'feature', value : 'auto',
|
||||
description: 'use libgio for D-Bus support')
|
||||
option('glusterfs', type : 'feature', value : 'auto',
|
||||
description: 'Glusterfs block device driver')
|
||||
option('libdw', type : 'feature', value : 'auto',
|
||||
description: 'debuginfo support')
|
||||
option('libiscsi', type : 'feature', value : 'auto',
|
||||
description: 'libiscsi userspace initiator')
|
||||
option('libnfs', type : 'feature', value : 'auto',
|
||||
|
@ -109,6 +109,7 @@ meson_options_help() {
|
||||
printf "%s\n" ' kvm KVM acceleration support'
|
||||
printf "%s\n" ' l2tpv3 l2tpv3 network backend support'
|
||||
printf "%s\n" ' libdaxctl libdaxctl support'
|
||||
printf "%s\n" ' libdw debuginfo support'
|
||||
printf "%s\n" ' libiscsi libiscsi userspace initiator'
|
||||
printf "%s\n" ' libnfs libnfs block device driver'
|
||||
printf "%s\n" ' libpmem libpmem support'
|
||||
@ -312,6 +313,8 @@ _meson_option_parse() {
|
||||
--enable-libdaxctl) printf "%s" -Dlibdaxctl=enabled ;;
|
||||
--disable-libdaxctl) printf "%s" -Dlibdaxctl=disabled ;;
|
||||
--libdir=*) quote_sh "-Dlibdir=$2" ;;
|
||||
--enable-libdw) printf "%s" -Dlibdw=enabled ;;
|
||||
--disable-libdw) printf "%s" -Dlibdw=disabled ;;
|
||||
--libexecdir=*) quote_sh "-Dlibexecdir=$2" ;;
|
||||
--enable-libiscsi) printf "%s" -Dlibiscsi=enabled ;;
|
||||
--disable-libiscsi) printf "%s" -Dlibiscsi=disabled ;;
|
||||
|
Loading…
Reference in New Issue
Block a user