aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGravatar Nikolaus Rath <Nikolaus@rath.org>2017-05-24 16:12:41 -0700
committerGravatar Nikolaus Rath <Nikolaus@rath.org>2017-05-24 16:12:41 -0700
commit2bc480a37a3be2a7ace105741ccf34bceb29332a (patch)
tree9ef6155bdffc821ea1ff0d101ebaf87cb3ba57a4 /lib
parent9b6e15406bd83a722cb07ed37709d94308d9e22e (diff)
lib/meson.build: don't crash if there's no libdl
For example, FreeBSD doesn't have it. Fixes: #173.
Diffstat (limited to 'lib')
-rw-r--r--lib/meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/meson.build b/lib/meson.build
index 287dc86..c583b85 100644
--- a/lib/meson.build
+++ b/lib/meson.build
@@ -17,7 +17,7 @@ if cfg.has('HAVE_ICONV')
endif
deps = [ thread_dep ]
-libdl = meson.get_compiler('c').find_library('dl')
+libdl = meson.get_compiler('c').find_library('dl', required: false)
if libdl.found()
deps += [ libdl ]
endif