diff options
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/autotools.bbclass | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass index b97d74b8d1..ca981ec47a 100644 --- a/meta/classes/autotools.bbclass +++ b/meta/classes/autotools.bbclass | |||
@@ -34,6 +34,21 @@ EXTRA_AUTORECONF = "--exclude=autopoint" | |||
34 | 34 | ||
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 | # When building tools for use at build-time it's recommended for the build | ||
38 | # system to use these variables when cross-compiling. | ||
39 | # (http://sources.redhat.com/autobook/autobook/autobook_270.html) | ||
40 | export CPP_FOR_BUILD = "${BUILD_CPP}" | ||
41 | export CPPFLAGS_FOR_BUILD = "${BUILD_CPPFLAGS}" | ||
42 | |||
43 | export CC_FOR_BUILD = "${BUILD_CC}" | ||
44 | export CFLAGS_FOR_BUILD = "${BUILD_CFLAGS}" | ||
45 | |||
46 | export CXX_FOR_BUILD = "${BUILD_CXX}" | ||
47 | export CXXFLAGS_FOR_BUILD="${BUILD_CXXFLAGS}" | ||
48 | |||
49 | export LD_FOR_BUILD = "${BUILD_LD}" | ||
50 | export LDFLAGS_FOR_BUILD = "${BUILD_LDFLAGS}" | ||
51 | |||
37 | def autotools_set_crosscompiling(d): | 52 | def autotools_set_crosscompiling(d): |
38 | if not bb.data.inherits_class('native', d): | 53 | if not bb.data.inherits_class('native', d): |
39 | return " cross_compiling=yes" | 54 | return " cross_compiling=yes" |