diff options
author | Jérémy Rosen <jeremy.rosen@smile.fr> | 2016-09-07 11:08:42 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-09-14 22:22:07 +0100 |
commit | ddc7bd795b02da614b446285dc3680f94ed268aa (patch) | |
tree | 7b95d9bc93e78d792e039849cfaedc147e469f8b /meta/classes/cross.bbclass | |
parent | a1bcc483d2f6a6716c557128fc43756895eb4f89 (diff) | |
download | poky-ddc7bd795b02da614b446285dc3680f94ed268aa.tar.gz |
cross: export CC family from BUILD_* for cross compilers
cross-compilers are native recipes that need to be compiled by the host's
compiler. However they do not use native.bbclass
As a consequence, the various CC, CXX etc environment variables are not
correctly set and they will not honor the host compiler name provided
by the BUILD_* variables.
(From OE-Core rev: 110cc22614f92e848bbba9ecaa5e6f089f9a2749)
Signed-off-by: Jérémy Rosen <jeremy.rosen@smile.fr>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/cross.bbclass')
-rw-r--r-- | meta/classes/cross.bbclass | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/meta/classes/cross.bbclass b/meta/classes/cross.bbclass index 81d1c9d855..8d1e7795aa 100644 --- a/meta/classes/cross.bbclass +++ b/meta/classes/cross.bbclass | |||
@@ -68,4 +68,16 @@ do_install () { | |||
68 | 68 | ||
69 | USE_NLS = "no" | 69 | USE_NLS = "no" |
70 | 70 | ||
71 | export CC = "${BUILD_CC}" | ||
72 | export CXX = "${BUILD_CXX}" | ||
73 | export FC = "${BUILD_FC}" | ||
74 | export CPP = "${BUILD_CPP}" | ||
75 | export LD = "${BUILD_LD}" | ||
76 | export CCLD = "${BUILD_CCLD}" | ||
77 | export AR = "${BUILD_AR}" | ||
78 | export AS = "${BUILD_AS}" | ||
79 | export RANLIB = "${BUILD_RANLIB}" | ||
80 | export STRIP = "${BUILD_STRIP}" | ||
81 | export NM = "${BUILD_NM}" | ||
82 | |||
71 | inherit nopackages | 83 | inherit nopackages |