1From 21ad6bf2bcb0745c25a28637449a72eee883a8e2 Mon Sep 17 00:00:00 2001 2From: Fabrice Fontaine <fontaine.fabrice@gmail.com> 3Date: Sun, 21 Apr 2019 19:19:10 +0200 4Subject: [PATCH] meson.build: link with lintl if needed 5 6Fixes: 7 - http://autobuild.buildroot.org/results/d53978fb30d77cb4d10921bf721eff3d066567ce 8 9Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> 10[Upstream status: not sent as upstream already rejected the first patch 11on atomic: https://github.com/MusicPlayerDaemon/ncmpc/pull/45] 12--- 13 meson.build | 2 ++ 14 1 file changed, 2 insertions(+) 15 16diff --git a/meson.build b/meson.build 17index 2e6defc..28e9d29 100644 18--- a/meson.build 19+++ b/meson.build 20@@ -42,6 +42,7 @@ else 21 error('libintl.h not found') 22 endif 23 conf.set('ENABLE_NLS', enable_nls) 24+intl_dep = cc.find_library('intl', required: false) 25 if enable_nls 26 conf.set_quoted('GETTEXT_PACKAGE', meson.project_name()) 27 subdir('po') 28@@ -356,6 +357,7 @@ ncmpc = executable('ncmpc', 29 boost_dep, 30 pcre_dep, 31 curses_dep, 32+ intl_dep, 33 lirc_dep, 34 libmpdclient_dep, 35 ], 36-- 372.20.1 38 39