From 2fa8c7d2db8e2a00d74cce404a22cfd581883ba9 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 22 May 2023 14:04:01 +0200 Subject: [PATCH] lib/crypto/meson.build: link with `ffmpeg_util_dep` This adds `MakeFfmpegError()` to the executable and fixes a linker failure when `libavutil` is available, but `libavformat` and `libavcodec` are not. Closes https://github.com/MusicPlayerDaemon/MPD/issues/1786 --- src/lib/crypto/meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/crypto/meson.build b/src/lib/crypto/meson.build index f3a99cb86..a10548ff5 100644 --- a/src/lib/crypto/meson.build +++ b/src/lib/crypto/meson.build @@ -18,13 +18,13 @@ endif conf.set('HAVE_MD5', crypto_md5_dep.found()) -if libavutil_dep.found() +if ffmpeg_util_dep.found() crypto_base64 = static_library( 'crypto_base64', 'Base64.cxx', include_directories: inc, dependencies: [ - libavutil_dep, + ffmpeg_util_dep, ], )