diff options
Diffstat (limited to 'meta/classes/autotools.bbclass')
| -rw-r--r-- | meta/classes/autotools.bbclass | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass index 02b984db63..4c4bf8775d 100644 --- a/meta/classes/autotools.bbclass +++ b/meta/classes/autotools.bbclass | |||
| @@ -1,23 +1,23 @@ | |||
| 1 | def autotools_dep_prepend(d): | 1 | def autotools_dep_prepend(d): |
| 2 | if d.getVar('INHIBIT_AUTOTOOLS_DEPS', True): | 2 | if d.getVar('INHIBIT_AUTOTOOLS_DEPS', True): |
| 3 | return '' | 3 | return '' |
| 4 | 4 | ||
| 5 | pn = d.getVar('PN', True) | 5 | pn = d.getVar('PN', True) |
| 6 | deps = '' | 6 | deps = '' |
| 7 | 7 | ||
| 8 | if pn in ['autoconf-native', 'automake-native', 'help2man-native']: | 8 | if pn in ['autoconf-native', 'automake-native', 'help2man-native']: |
| 9 | return deps | 9 | return deps |
| 10 | deps += 'autoconf-native automake-native ' | 10 | deps += 'autoconf-native automake-native ' |
| 11 | 11 | ||
| 12 | if not pn in ['libtool', 'libtool-native'] and not pn.endswith("libtool-cross"): | 12 | if not pn in ['libtool', 'libtool-native'] and not pn.endswith("libtool-cross"): |
| 13 | deps += 'libtool-native ' | 13 | deps += 'libtool-native ' |
| 14 | if not bb.data.inherits_class('native', d) \ | 14 | if not bb.data.inherits_class('native', d) \ |
| 15 | and not bb.data.inherits_class('nativesdk', d) \ | 15 | and not bb.data.inherits_class('nativesdk', d) \ |
| 16 | and not bb.data.inherits_class('cross', d) \ | 16 | and not bb.data.inherits_class('cross', d) \ |
| 17 | and not d.getVar('INHIBIT_DEFAULT_DEPS', True): | 17 | and not d.getVar('INHIBIT_DEFAULT_DEPS', True): |
| 18 | deps += 'libtool-cross ' | 18 | deps += 'libtool-cross ' |
| 19 | 19 | ||
| 20 | return deps + 'gnu-config-native ' | 20 | return deps + 'gnu-config-native ' |
| 21 | 21 | ||
| 22 | EXTRA_OEMAKE = "" | 22 | EXTRA_OEMAKE = "" |
| 23 | 23 | ||
| @@ -35,15 +35,15 @@ EXTRA_AUTORECONF = "--exclude=autopoint" | |||
| 35 | export lt_cv_sys_lib_dlsearch_path_spec = "${libdir} ${base_libdir}" | 35 | export lt_cv_sys_lib_dlsearch_path_spec = "${libdir} ${base_libdir}" |
| 36 | 36 | ||
| 37 | def autotools_set_crosscompiling(d): | 37 | def autotools_set_crosscompiling(d): |
| 38 | if not bb.data.inherits_class('native', d): | 38 | if not bb.data.inherits_class('native', d): |
| 39 | return " cross_compiling=yes" | 39 | return " cross_compiling=yes" |
| 40 | return "" | 40 | return "" |
| 41 | 41 | ||
| 42 | def append_libtool_sysroot(d): | 42 | def append_libtool_sysroot(d): |
| 43 | # Only supply libtool sysroot option for non-native packages | 43 | # Only supply libtool sysroot option for non-native packages |
| 44 | if not bb.data.inherits_class('native', d): | 44 | if not bb.data.inherits_class('native', d): |
| 45 | return '--with-libtool-sysroot=${STAGING_DIR_HOST}' | 45 | return '--with-libtool-sysroot=${STAGING_DIR_HOST}' |
| 46 | return "" | 46 | return "" |
| 47 | 47 | ||
| 48 | # EXTRA_OECONF_append = "${@autotools_set_crosscompiling(d)}" | 48 | # EXTRA_OECONF_append = "${@autotools_set_crosscompiling(d)}" |
| 49 | 49 | ||
