Meson: libintl is a public dependency of glib-2.0

On non-glibc platforms gettext is provided by extra libintl dependency.
We wrongly thought libintl is an internal dependency and applications
needs to explicitly link on it, but turns out that breaks many
applications and with autotools the .pc generated actually has -lintl in
public "Libs:".

https://bugzilla.gnome.org/show_bug.cgi?id=796085
This commit is contained in:
Xavier Claessens
2018-05-13 19:22:51 -04:00
parent e64113bca0
commit 7b8d8835f5
4 changed files with 15 additions and 16 deletions

View File

@@ -68,7 +68,7 @@ libgobject = library('gobject-2.0',
soversion : soversion,
install : true,
include_directories : [configinc],
dependencies : [libintl, libffi_dep, libglib_dep],
dependencies : [libffi_dep, libglib_dep],
c_args : ['-DG_LOG_DOMAIN="GLib-GObject"', '-DGOBJECT_COMPILATION'] + glib_hidden_visibility_args,
link_args : glib_link_flags,
)