diff options
author | Ross Burton <ross.burton@intel.com> | 2012-11-09 10:09:28 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-11-12 13:36:37 +0000 |
commit | 85bfe3c931d7ef5ee461251abb6772564733e072 (patch) | |
tree | 1b624d1055bad054fc23554c8137ffcc94a793de /meta | |
parent | 78983e939ab17f02f8911c8b0d0e326b419856b9 (diff) | |
download | poky-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')
-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" |