summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2011-07-15 23:22:18 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-07-20 15:27:37 +0100
commitb2c8f9320ac8b19310904284e6f546b62df704cc (patch)
tree3f0866df0f5dbd3baee7ec0055bc8db19623fe21
parentcaf22e3ba2c33358992da0015841ef3fdbce7312 (diff)
downloadpoky-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>
-rw-r--r--meta/classes/gettext.bbclass2
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):
7 7
8def gettext_oeconf(d): 8def gettext_oeconf(d):
9 # Remove the NLS bits if USE_NLS is no. 9 # Remove the NLS bits if USE_NLS is no.
10 if d.getVar('USE_NLS', True) == 'no': 10 if d.getVar('USE_NLS', True) == 'no' and not oe.utils.inherits(d, 'native', 'nativesdk', 'cross', 'cross-canadian'):
11 return '--disable-nls' 11 return '--disable-nls'
12 return "--enable-nls" 12 return "--enable-nls"
13 13