From f6c40b1d27ed1037985a2507205a50d536f3aafc Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Mon, 20 Mar 2023 14:55:05 +0000 Subject: [PATCH] meson: allow -Dlibelf=enabled without pkg-config gio/meson.build:933:0: ERROR: Dependency "libelf" not found, tried pkgconfig --- gio/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gio/meson.build b/gio/meson.build index 462606f3b..396ca2f4c 100644 --- a/gio/meson.build +++ b/gio/meson.build @@ -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