From 65c8bc8ec4ae8dd140b0205a61d0d216fa45d819 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Thu, 28 Jan 2021 07:50:44 +0100 Subject: [PATCH] meson.build: link with lintl if needed Link with -lintl to avoid the following build failure: /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/bin/../lib/gcc/mips64el-buildroot-linux-uclibc/5.5.0/../../../../mips64el-buildroot-linux-uclibc/bin/ld: gdk-pixbuf/libgdk_pixbuf-2.0.so.0.4200.2.p/gdk-pixbuf-util.c.o: in function `_gdk_pixbuf_init_gettext': gdk-pixbuf-util.c:(.text+0xbc0): undefined reference to `libintl_bindtextdomain' /home/giuliobenetti/autobuild/run/instance-0/output-1/host/opt/ext-toolchain/bin/../lib/gcc/mips64el-buildroot-linux-uclibc/5.5.0/../../../../mips64el-buildroot-linux-uclibc/bin/ld: gdk-pixbuf-util.c:(.text+0xbc8): undefined reference to `libintl_bindtextdomain' Fixes: - http://autobuild.buildroot.org/results/894359558100ea9637feba16deaf99923805d0f2 Signed-off-by: Fabrice Fontaine [Upstream status: https://gitlab.gnome.org/GNOME/gdk-pixbuf/-/merge_requests/101] --- meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 1cef125a3..973948108 100644 --- a/meson.build +++ b/meson.build @@ -93,6 +93,7 @@ if cc.has_function('lrint', dependencies: mathlib_dep) gdk_pixbuf_conf.set('HAVE_LRINT', 1) endif +intl_dep = cc.find_library('intl', required: false) if cc.has_function('bind_textdomain_codeset', prefix: '#include ') gdk_pixbuf_conf.set('HAVE_BIND_TEXTDOMAIN_CODESET', 1) endif @@ -212,7 +213,7 @@ if medialib_dep.found() endif gdk_pixbuf_deps = [ mathlib_dep, glib_dep, gobject_dep, gmodule_dep, gio_dep, - shared_mime_dep, medialib_dep ] + shared_mime_dep, medialib_dep, intl_dep ] # Check if we can build shared modules if gmodule_dep.type_name() == 'pkgconfig' -- 2.29.2