diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-06-03 09:31:26 +0200 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-06-03 12:52:48 +0200 |
commit | b7865c2408fa1960f416213ab22783a0bcf3171a (patch) | |
tree | d63b9faad34aa2940d233a6dd9d1f703ec3841a0 /meson.build | |
parent | mkosi: drop Debian /tmp hack (diff) | |
download | systemd-b7865c2408fa1960f416213ab22783a0bcf3171a.tar.xz systemd-b7865c2408fa1960f416213ab22783a0bcf3171a.zip |
meson: Pass -Wno-deprecated-declarations when detecting libcryptsetup functions
Otherwise we fail to detect crypt_reencrypt() if -Werror is used.
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meson.build b/meson.build index b0b8697d50..ea4e12aa1c 100644 --- a/meson.build +++ b/meson.build @@ -1268,6 +1268,9 @@ foreach ident : ['crypt_set_metadata_size', have_ident = have and cc.has_function( ident, prefix : '#include <libcryptsetup.h>', + # crypt_reencrypt() raises a deprecation warning so make sure -Wno-deprecated-declarations is + # specified otherwise we fail to detect crypt_reencrypt() if -Werror is used. + args : '-Wno-deprecated-declarations', dependencies : libcryptsetup) conf.set10('HAVE_' + ident.to_upper(), have_ident) endforeach |