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 12:39:40 +0000 |
commit | edf30561184ec42e5692a55fdf93304fac0fdb1b (patch) | |
tree | f76e3d894e9bb40ba8ac1329bf3479419ea4ffbe /meta/classes/autotools.bbclass | |
parent | 5e4714a454f9f742bf8af70dad2aa66ccb87e3fd (diff) | |
download | openembedded-core-edf30561184ec42e5692a55fdf93304fac0fdb1b.tar.gz openembedded-core-edf30561184ec42e5692a55fdf93304fac0fdb1b.tar.bz2 openembedded-core-edf30561184ec42e5692a55fdf93304fac0fdb1b.zip |
autotools: set _FOR_BUILD variables here
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.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" export lt_cv_sys_lib_dlsearch_path_spec = "${libdir} ${base_libdir}" +# When building tools for use at build-time it's recommended for the build +# system to use these variables when cross-compiling. +# (http://sources.redhat.com/autobook/autobook/autobook_270.html) +export CPP_FOR_BUILD = "${BUILD_CPP}" +export CPPFLAGS_FOR_BUILD = "${BUILD_CPPFLAGS}" + +export CC_FOR_BUILD = "${BUILD_CC}" +export CFLAGS_FOR_BUILD = "${BUILD_CFLAGS}" + +export CXX_FOR_BUILD = "${BUILD_CXX}" +export CXXFLAGS_FOR_BUILD="${BUILD_CXXFLAGS}" + +export LD_FOR_BUILD = "${BUILD_LD}" +export LDFLAGS_FOR_BUILD = "${BUILD_LDFLAGS}" + def autotools_set_crosscompiling(d): if not bb.data.inherits_class('native', d): return " cross_compiling=yes" |