summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/autotools.bbclass15
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
35export lt_cv_sys_lib_dlsearch_path_spec = "${libdir} ${base_libdir}" 35export 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)
40export CPP_FOR_BUILD = "${BUILD_CPP}"
41export CPPFLAGS_FOR_BUILD = "${BUILD_CPPFLAGS}"
42
43export CC_FOR_BUILD = "${BUILD_CC}"
44export CFLAGS_FOR_BUILD = "${BUILD_CFLAGS}"
45
46export CXX_FOR_BUILD = "${BUILD_CXX}"
47export CXXFLAGS_FOR_BUILD="${BUILD_CXXFLAGS}"
48
49export LD_FOR_BUILD = "${BUILD_LD}"
50export LDFLAGS_FOR_BUILD = "${BUILD_LDFLAGS}"
51
37def autotools_set_crosscompiling(d): 52def 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"