diff options
author | Khem Raj <raj.khem@gmail.com> | 2011-07-15 23:22:18 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-07-20 15:27:37 +0100 |
commit | b2c8f9320ac8b19310904284e6f546b62df704cc (patch) | |
tree | 3f0866df0f5dbd3baee7ec0055bc8db19623fe21 /meta/classes/gettext.bbclass | |
parent | caf22e3ba2c33358992da0015841ef3fdbce7312 (diff) | |
download | openembedded-core-contrib-b2c8f9320ac8b19310904284e6f546b62df704cc.tar.gz |
classes/gettext: Do not disable nls for non target recipes
nls disabling is target specific but USE_NLS=no will
disable nls even for other kind of recipes. We should
let them build with nls
(From OE-Core rev: 7be58f695aaa8b111fcf79a3505964e9f49b108a)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/gettext.bbclass')
-rw-r--r-- | meta/classes/gettext.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/gettext.bbclass b/meta/classes/gettext.bbclass index 86b505b3d4..d5b3d701e9 100644 --- a/meta/classes/gettext.bbclass +++ b/meta/classes/gettext.bbclass @@ -7,7 +7,7 @@ def gettext_dependencies(d): def gettext_oeconf(d): # Remove the NLS bits if USE_NLS is no. - if d.getVar('USE_NLS', True) == 'no': + if d.getVar('USE_NLS', True) == 'no' and not oe.utils.inherits(d, 'native', 'nativesdk', 'cross', 'cross-canadian'): return '--disable-nls' return "--enable-nls" |