Don't link libpulsecommon with GLib and GTK
authorFelipe Sateler <fsateler@debian.org>
Wed, 19 May 2021 04:15:29 +0000 (00:15 -0400)
committerPulseAudio Marge Bot <pulseaudio-maintainers@lists.freedesktop.org>
Mon, 31 May 2021 16:18:08 +0000 (16:18 +0000)
This was the behaviour with the autotools build.

Fixes #1210

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/559>

src/meson.build

index d8ecd86..69319c2 100644 (file)
@@ -198,7 +198,8 @@ libpulsecommon = shared_library('pulsecommon-' + pa_version_major_minor,
   install_dir : privlibdir,
   dependencies : [
     libm_dep, thread_dep, dl_dep, shm_dep, iconv_dep, sndfile_dep, dbus_dep,
-    x11_dep, libsystemd_dep, glib_dep, gtk_dep, asyncns_dep, libintl_dep,
+    x11_dep, libsystemd_dep, glib_dep.partial_dependency(compile_args: true),
+    gtk_dep.partial_dependency(compile_args: true), asyncns_dep, libintl_dep,
     platform_dep, tcpwrap_dep, platform_socket_dep, execinfo_dep,
   ],
   implicit_include_directories : false)