summaryrefslogtreecommitdiffstats
path: root/meta/classes/autotools.bbclass
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2012-11-09 10:09:28 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-11-12 13:36:37 +0000
commit85bfe3c931d7ef5ee461251abb6772564733e072 (patch)
tree1b624d1055bad054fc23554c8137ffcc94a793de /meta/classes/autotools.bbclass
parent78983e939ab17f02f8911c8b0d0e326b419856b9 (diff)
downloadpoky-85bfe3c931d7ef5ee461251abb6772564733e072.tar.gz
autotools: set _FOR_BUILD variables here
(From OE-Core rev: edf30561184ec42e5692a55fdf93304fac0fdb1b) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/autotools.bbclass')
-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"