From 2bc480a37a3be2a7ace105741ccf34bceb29332a Mon Sep 17 00:00:00 2001 From: Nikolaus Rath Date: Wed, 24 May 2017 16:12:41 -0700 Subject: lib/meson.build: don't crash if there's no libdl For example, FreeBSD doesn't have it. Fixes: #173. --- lib/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.3