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-19 12:37:13 +0000 |
commit | d7e8acc9a35d159e16918866872fd95d3bef9258 (patch) | |
tree | a73e79191dc7ee635be04c4a0b5eb9f72606095a /meta/recipes-core/glib-2.0 | |
parent | f2d7b5b2eea864daceaf68c0f6a1527f267064a2 (diff) | |
download | poky-d7e8acc9a35d159e16918866872fd95d3bef9258.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.
(From OE-Core rev: 1b1f382af69a2d63f2ddd526cde430fb68c9ca6e)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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 354d95cfe3..aa86f28c2c 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" | |||
85 | # doesn't support mips16e | 85 | # doesn't support mips16e |
86 | CPPFLAGS_append_class-target_mips16e = " -DNVALGRIND=1" | 86 | CPPFLAGS_append_class-target_mips16e = " -DNVALGRIND=1" |
87 | 87 | ||
88 | # GLib generally requires gettext to be present so for USE_NLS to yes. For | ||
89 | # native builds as i18n is disabled globally we can tell it to use a fake msgfmt. | ||
90 | USE_NLS_class-target = "yes" | ||
91 | USE_NLS_class-nativesdk = "yes" | ||
88 | CACHED_CONFIGUREVARS_append_class-native = " ac_cv_path_MSGFMT=/bin/false" | 92 | CACHED_CONFIGUREVARS_append_class-native = " ac_cv_path_MSGFMT=/bin/false" |
89 | 93 | ||
90 | do_install_append () { | 94 | do_install_append () { |