meson: allow -Dlibelf=enabled without pkg-config

gio/meson.build:933:0: ERROR: Dependency "libelf" not found, tried pkgconfig
This commit is contained in:
Jan Beich 2023-03-20 14:55:05 +00:00
parent e979fd9a15
commit f6c40b1d27

View File

@ -930,7 +930,7 @@ endif
# Dependencies used by executables below
have_libelf = false
libelf = dependency('libelf', version : '>= 0.8.12', required : get_option ('libelf'))
libelf = dependency('libelf', version : '>= 0.8.12', required : false)
if libelf.found()
have_libelf = true
else