lib__mount_deps = [
lib_selinux,
- get_option('cryptsetup-dlopen').enabled() ? lib_dl : lib_cryptsetup,
+ cryptsetup_dlopen ? lib_dl : lib_cryptsetup,
realtime_libs
]
lib_mount = library(
required : get_option('cryptsetup'))
conf.set('HAVE_CRYPTSETUP', lib_cryptsetup.found() ? 1 : false)
-if not get_option('cryptsetup').disabled() and get_option('cryptsetup-dlopen').enabled()
+cryptsetup_dlopen = not get_option('cryptsetup').disabled() and get_option('cryptsetup-dlopen').enabled()
+if cryptsetup_dlopen
if meson.version().version_compare('>= 0.62.0')
lib_dl = dependency('dl')
else