summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--meta/classes/autotools.bbclass7
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass
index 8fc05cde0..472249d2e 100644
--- a/meta/classes/autotools.bbclass
+++ b/meta/classes/autotools.bbclass
@@ -14,7 +14,12 @@ def autotools_dep_prepend(d):
deps += 'autoconf-native automake-native '
if not pn in ['libtool', 'libtool-native', 'libtool-cross']:
- deps += 'libtool-native libtool-cross '
+ deps += 'libtool-native '
+ if not bb.data.inherits_class('native', d) \
+ and not bb.data.inherits_class('cross', d) \
+ and not bb.data.getVar('INHIBIT_DEFAULT_DEPS', d, 1):
+ deps += 'libtool-cross '
+
return deps + 'gnu-config-native '