aboutsummaryrefslogtreecommitdiffstats
path: root/community/pacman/use-gettext-libintl.patch
blob: 2026b1f51c74f6eb8d5d619c788ef33e54b18317 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
Force build system to use libintl coming with gettext.

--- a/meson.build
+++ b/meson.build
@@ -77,12 +77,10 @@
 
 libintl = dependency('', required: false)
 if get_option('i18n')
-  if not cc.has_function('ngettext')
     libintl = cc.find_library('intl', required : false, static: get_option('buildstatic'))
     if not libintl.found()
       error('ngettext not found but NLS support requested')
     endif
-  endif
   conf.set('ENABLE_NLS', 1)
 endif
 
@@ -341,7 +339,7 @@
   pacman_sources,
   include_directories : includes,
   link_with : [libalpm, libcommon],
-  dependencies : [libarchive],
+  dependencies : [libarchive, libintl],
   install : true,
 )
 
@@ -350,7 +348,7 @@
   pacman_conf_sources,
   include_directories : includes,
   link_with : [libalpm, libcommon],
-  dependencies : [libarchive],
+  dependencies : [libarchive, libintl],
   install : true,
 )
 
@@ -359,7 +357,7 @@
   testpkg_sources,
   include_directories : includes,
   link_with : [libalpm],
-  dependencies : [libarchive],
+  dependencies : [libarchive, libintl],
   install : true,
 )