]> code.ossystems Code Review - openembedded-core.git/commitdiff
classes/gettext: Do not disable nls for non target recipes
authorKhem Raj <raj.khem@gmail.com>
Sat, 16 Jul 2011 06:22:18 +0000 (23:22 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 20 Jul 2011 14:25:00 +0000 (15:25 +0100)
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

Signed-off-by: Khem Raj <raj.khem@gmail.com>
meta/classes/gettext.bbclass

index 86b505b3d4549d7ae544dec13bb6f38fb91fa643..d5b3d701e956268658d9dbe9a3606b63a21d404d 100644 (file)
@@ -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"