Merge branch 'bsd-libelf-enabled' into 'main'

meson: allow -Dlibelf=enabled without pkg-config

See merge request GNOME/glib!3335
This commit is contained in:
Philip Withnall 2023-04-14 15:48:20 +00:00
commit 5611851eb9

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