build-sys: meson: only require libltdl if daemon is built

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/557>
This commit is contained in:
Igor V. Kovalenko 2021-05-18 19:47:32 +03:00
parent 188f9772c8
commit 6e04c0a704

View file

@ -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)