[gdk-pixbuf: 1/3] meson.build: link with lintl if needed
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdk-pixbuf: 1/3] meson.build: link with lintl if needed
- Date: Tue, 9 Feb 2021 18:11:29 +0000 (UTC)
commit e00a53a1c3c034cb6e394b0c0688f73e0bc972a6
Author: Fabrice Fontaine <fontaine fabrice gmail com>
Date: Thu Jan 28 07:50:44 2021 +0100
meson.build: link with lintl if needed
Link with -lintl if needed to avoid the following build failure with
some toolchains (e.g. uclibc or musl):
/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 <fontaine fabrice gmail com>
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 <libintl.h>')
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'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]