From: Nikolaus Rath Date: Wed, 24 May 2017 23:12:41 +0000 (-0700) Subject: lib/meson.build: don't crash if there's no libdl X-Git-Tag: fuse-3.1.0~32 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=2bc480a37a3be2a7ace105741ccf34bceb29332a;p=qemu-gpiodev%2Flibfuse.git lib/meson.build: don't crash if there's no libdl For example, FreeBSD doesn't have it. Fixes: #173. --- 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