]> code.ossystems Code Review - openembedded-core.git/commitdiff
glib: improve gettext enabling/disabling
authorRoss Burton <ross.burton@intel.com>
Tue, 16 Jan 2018 14:02:52 +0000 (14:02 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 18 Jan 2018 23:28:41 +0000 (23:28 +0000)
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>
meta/recipes-core/glib-2.0/glib.inc

index 354d95cfe3d8355df60aa1dffcf4f2be66add16b..aa86f28c2cf8c2398a988c407f7f712861f12d80 100644 (file)
@@ -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 () {