From 43acef454c96a9fd6efdb028f8f063f09f7724f3 Mon Sep 17 00:00:00 2001 From: Steve Lhomme <robux4@ycbcr.xyz> Date: Mon, 2 Dec 2024 10:07:46 +0100 Subject: [PATCH] meson: allow iconv library to be missing The code allows not having iconv at all. Ref. #28893 --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index ed89fce598fa..fcaab49fd07a 100644 --- a/meson.build +++ b/meson.build @@ -173,7 +173,7 @@ iconv_dep = dependency('iconv', required: false) if not iconv_dep.found() # check in contribs if cc.has_function('iconv_open', prefix: vlc_conf_prefix + '#include <iconv.h>', - dependencies: [contrib_dep, cc.find_library('iconv', dirs: contrib_libdir)]) + dependencies: [contrib_dep, cc.find_library('iconv', dirs: contrib_libdir, required: false)]) iconv_dep = declare_dependency( dependencies: [contrib_dep, cc.find_library('iconv', dirs: contrib_libdir)]) endif -- GitLab