Skip to content

Commit

Permalink
meson: if dep_dl is an empty list, it's not a dependency object
Browse files Browse the repository at this point in the history
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 mesonbuild/meson#2324
  • Loading branch information
jon-turney committed Nov 13, 2017
1 parent 92e3b81 commit fac01f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meson.build
Expand Up @@ -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

Expand Down

0 comments on commit fac01f8

Please sign in to comment.