From: Jon Turney Date: Mon, 13 Nov 2017 10:13:54 +0000 (+0000) Subject: meson: if dep_dl is an empty list, it's not a dependency object X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7df9a3609a5d8f7db57270d226145f9678749a0b;p=mesa.git 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 Signed-off-by: Jon Turney Reviewed-by: Eric Engestrom Reviewed-by: Dylan Baker --- diff --git a/meson.build b/meson.build index e8467590df2..1c4200705f3 100644 --- a/meson.build +++ b/meson.build @@ -922,7 +922,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