11diff --git a/meson.build b/meson.build
2- index a10a1b3c8..c4cf8c6a9 100644
2+ index 658eeee..349752e 100644
33--- a/meson.build
44+++ b/meson.build
5- @@ -296 ,6 +296 ,12 @@ if cc.has_function('SYS_memfd_create', prefix : '#include <sys/syscall.h>')
6- cdata.set('HAVE_MEMFD', 1 )
5+ @@ -307 ,6 +307 ,12 @@ else
6+ libintl_dep = cc.find_library('intl' )
77 endif
88
99+ if cc.has_function('libintl_dgettext')
@@ -15,119 +15,16 @@ index a10a1b3c8..c4cf8c6a9 100644
1515 # Symbols
1616
1717 if cc.has_header_symbol('signal.h', 'SIGXCPU')
18- diff --git a/src/daemon/meson.build b/src/daemon/meson.build
19- index 9bc3bf18e..9c9f807e7 100644
20- --- a/src/daemon/meson.build
21- +++ b/src/daemon/meson.build
22- @@ -31,7 +31,7 @@ executable('pulseaudio',
23- include_directories : [configinc, topinc],
24- link_args : ['-ffast-math'],
25- link_with : [libpulsecore, libpulsecommon, libpulse],
26- - dependencies : [ltdl_dep, cap_dep, dbus_dep, libsystemd_dep, dl_dep],
27- + dependencies : [ltdl_dep, cap_dep, dbus_dep, libsystemd_dep, dl_dep, libintl_dep],
28- c_args : pa_c_args,
29- )
30-
31- diff --git a/src/meson.build b/src/meson.build
32- index c9b71a484..832c0de0d 100644
33- --- a/src/meson.build
34- +++ b/src/meson.build
35- @@ -183,7 +183,7 @@ libpulsecommon = shared_library('pulsecommon-' + pa_version_major_minor,
36- install_dir : privlibdir,
37- dependencies : [
38- libm_dep, thread_dep, dl_dep, shm_dep, iconv_dep, sndfile_dep, dbus_dep,
39- - x11_dep, libsystemd_dep, glib_dep, gtk_dep, asyncns_dep
40- + x11_dep, libsystemd_dep, glib_dep, gtk_dep, asyncns_dep, libintl_dep,
41- ],
42- implicit_include_directories : false)
43-
4418diff --git a/src/pulse/meson.build b/src/pulse/meson.build
45- index 00c686772..2a6f78489 100644
19+ index aaebff5..3f68ac3 100644
4620--- a/src/pulse/meson.build
4721+++ b/src/pulse/meson.build
48- @@ -81,10 +81,10 @@ libpulse = shared_library('pulse',
49- link_args : [nodelete_link_args, versioning_link_args],
50- install : true,
51- install_rpath : privlibdir,
52- - dependencies : [libm_dep, thread_dep, libpulsecommon_dep, dbus_dep, dl_dep, iconv_dep],
53- + dependencies : [libm_dep, thread_dep, libpulsecommon_dep, dbus_dep, dl_dep, iconv_dep, libintl_dep],
22+ @@ -84,7 +84,7 @@ libpulse = shared_library('pulse',
23+ dependencies : [libm_dep, thread_dep, libpulsecommon_dep, dbus_dep, dl_dep, iconv_dep, libintl_dep],
5424 implicit_include_directories : false)
5525
5626- libpulse_dep = declare_dependency(link_with: libpulse)
5727+ libpulse_dep = declare_dependency(link_with: libpulse, dependencies: libintl_dep)
5828
59- install_data (
29+ install_headers (
6030 libpulse_headers, 'simple.h',
61- diff --git a/src/pulsecore/meson.build b/src/pulsecore/meson.build
62- index 19f6b9e99..0bd596cbd 100644
63- --- a/src/pulsecore/meson.build
64- +++ b/src/pulsecore/meson.build
65- @@ -198,7 +198,7 @@ libpulsecore = shared_library('pulsecore-' + pa_version_major_minor,
66- install_rpath : privlibdir,
67- install_dir : privlibdir,
68- link_with : libpulsecore_simd_lib,
69- - dependencies : [libm_dep, libpulsecommon_dep, libpulse_dep, ltdl_dep, shm_dep, sndfile_dep, database_dep, dbus_dep, libatomic_ops_dep, orc_dep, samplerate_dep, soxr_dep, speex_dep, x11_dep],
70- + dependencies : [libm_dep, libpulsecommon_dep, libpulse_dep, ltdl_dep, shm_dep, sndfile_dep, database_dep, dbus_dep, libatomic_ops_dep, orc_dep, samplerate_dep, soxr_dep, speex_dep, x11_dep, libintl_dep],
71- implicit_include_directories : false)
72-
73- libpulsecore_dep = declare_dependency(link_with: libpulsecore)
74- diff --git a/src/tests/meson.build b/src/tests/meson.build
75- index 621c2c965..a03d73cdb 100644
76- --- a/src/tests/meson.build
77- +++ b/src/tests/meson.build
78- @@ -53,7 +53,7 @@ default_tests = [
79- [ 'queue-test', 'queue-test.c',
80- [ check_dep, libpulse_dep, libpulsecommon_dep, libpulsecore_dep ] ],
81- [ 'resampler-test', 'resampler-test.c',
82- - [ libpulse_dep, libpulsecommon_dep, libpulsecore_dep ] ],
83- + [ libpulse_dep, libpulsecommon_dep, libpulsecore_dep, libintl_dep ] ],
84- [ 'rtpoll-test', 'rtpoll-test.c',
85- [ check_dep, libpulse_dep, libpulsecommon_dep, libpulsecore_dep ] ],
86- [ 'smoother-test', 'smoother-test.c',
87- diff --git a/src/utils/meson.build b/src/utils/meson.build
88- index d00e030ae..dedf4e404 100644
89- --- a/src/utils/meson.build
90- +++ b/src/utils/meson.build
91- @@ -15,7 +15,7 @@ executable('pacat',
92- install_rpath : privlibdir,
93- include_directories : [configinc, topinc],
94- link_with : [libpulsecommon, libpulse],
95- - dependencies : [sndfile_dep],
96- + dependencies : [sndfile_dep, libintl_dep],
97- c_args : pa_c_args,
98- )
99-
100- @@ -36,7 +36,7 @@ executable('pactl',
101- install_rpath : privlibdir,
102- include_directories : [configinc, topinc],
103- link_with : [libpulsecommon, libpulse],
104- - dependencies : [sndfile_dep],
105- + dependencies : [sndfile_dep, libintl_dep],
106- c_args : pa_c_args,
107- )
108-
109- @@ -50,6 +50,7 @@ executable('pasuspender',
110- install_rpath : privlibdir,
111- include_directories : [configinc, topinc],
112- link_with : [libpulsecommon, libpulse],
113- + dependencies: [libintl_dep],
114- c_args : pa_c_args,
115- )
116-
117- @@ -63,6 +64,7 @@ executable('pacmd',
118- install_rpath : privlibdir,
119- include_directories : [configinc, topinc],
120- link_with : [libpulsecommon, libpulse],
121- + dependencies: [libintl_dep],
122- c_args : pa_c_args,
123- )
124-
125- @@ -77,7 +79,7 @@ if x11_dep.found()
126- install_rpath : privlibdir,
127- include_directories : [configinc, topinc],
128- link_with : [libpulsecommon, libpulse],
129- - dependencies : [x11_dep],
130- + dependencies : [x11_dep, libintl_dep],
131- c_args : pa_c_args,
132- )
133- endif
0 commit comments