0002-meson.build-link-with-lintl-if-needed.patch 1.1 KB

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