diff options
author | Ross Burton <ross.burton@intel.com> | 2018-01-16 14:02:52 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-01-18 23:28:41 +0000 |
commit | 1b1f382af69a2d63f2ddd526cde430fb68c9ca6e (patch) | |
tree | 97cdbd54c38f506b030a00898fd4a72e875fd51e /meta/recipes-core/glib-2.0 | |
parent | e660ef68de3b3891a26ed6e10d96dc4efaf03ffc (diff) | |
download | openembedded-core-contrib-1b1f382af69a2d63f2ddd526cde430fb68c9ca6e.tar.gz |
glib: improve gettext enabling/disabling
As we only seed gettext's msgfmt as /bin/false for native builds, explicitly set
USE_NLS to yes in the recipe (as it was previously) for targeget and nativesdk
builds.
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/recipes-core/glib-2.0')
-rw-r--r-- | meta/recipes-core/glib-2.0/glib.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/recipes-core/glib-2.0/glib.inc b/meta/recipes-core/glib-2.0/glib.inc index 354d95cfe3d..aa86f28c2cf 100644 --- a/meta/recipes-core/glib-2.0/glib.inc +++ b/meta/recipes-core/glib-2.0/glib.inc @@ -85,6 +85,10 @@ ARM_INSTRUCTION_SET_armv5 = "arm" # doesn't support mips16e CPPFLAGS_append_class-target_mips16e = " -DNVALGRIND=1" +# GLib generally requires gettext to be present so for USE_NLS to yes. For +# native builds as i18n is disabled globally we can tell it to use a fake msgfmt. +USE_NLS_class-target = "yes" +USE_NLS_class-nativesdk = "yes" CACHED_CONFIGUREVARS_append_class-native = " ac_cv_path_MSGFMT=/bin/false" do_install_append () { |