From fac01f80f4cb58f0a282cc30aeb957b2c0f49ef0 Mon Sep 17 00:00:00 2001 From: Jon Turney Date: Mon, 13 Nov 2017 10:13:54 +0000 Subject: [PATCH] meson: if dep_dl is an empty list, it's not a dependency object It's ok to use an empty list for dependencies:, but it's not ok to try to use the found() method of it. See also https://github.com/mesonbuild/meson/issues/2324 --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index d3db9fefbaa..e2d234a8f00 100644 --- a/meson.build +++ b/meson.build @@ -925,7 +925,7 @@ endif if dep_m.found() gl_priv_libs += '-lm' endif -if dep_dl.found() +if dep_dl != [] and dep_dl.found() gl_priv_libs += '-ldl' endif