summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorIgor V. Kovalenko <igor.v.kovalenko@gmail.com>2021-05-18 19:47:32 +0300
committerIgor V. Kovalenko <igor.v.kovalenko@gmail.com>2021-05-18 19:37:28 +0300
commit6e04c0a7042d00fa8ed01efcb938495acc4ad617 (patch)
treea894c05db7eb03125c371a5419734339808304f6 /meson.build
parent188f9772c8666aa63ea04105aeae98d04e6c8643 (diff)
build-sys: meson: only require libltdl if daemon is built
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/557>
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build7
1 files changed, 5 insertions, 2 deletions
diff --git a/meson.build b/meson.build
index 5214a6519..790778988 100644
--- a/meson.build
+++ b/meson.build
@@ -561,8 +561,11 @@ if host_machine.cpu_family() == 'arm'
endif
# NEON checks are automatically done by the unstable-simd module
-# FIXME: make sure it's >= 2.2
-ltdl_dep = cc.find_library('ltdl', required : true)
+if get_option('daemon')
+ # FIXME: make sure it's >= 2.2
+ ltdl_dep = cc.find_library('ltdl', required : true)
+endif
+
# FIXME: can meson support libtool -dlopen/-dlpreopen things?
# and do we still want to support this at all?
cdata.set('DISABLE_LIBTOOL_PRELOAD', 1)