aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Rosen <jeremy.rosen@smile.fr>2016-09-07 11:08:42 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-09-13 15:17:34 +0100
commit110cc22614f92e848bbba9ecaa5e6f089f9a2749 (patch)
tree105a6b2d5cd7169151d1079f8a0cfd56ed36346c
parentc1f08c04a95f6ec089d4a62d90119df01c94cd80 (diff)
downloadopenembedded-core-contrib-110cc22614f92e848bbba9ecaa5e6f089f9a2749.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. Signed-off-by: Jérémy Rosen <jeremy.rosen@smile.fr> Signed-off-by: Ross Burton <ross.burton@intel.com>
-rw-r--r--meta/classes/cross.bbclass12
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 () {
USE_NLS = "no"
+export CC = "${BUILD_CC}"
+export CXX = "${BUILD_CXX}"
+export FC = "${BUILD_FC}"
+export CPP = "${BUILD_CPP}"
+export LD = "${BUILD_LD}"
+export CCLD = "${BUILD_CCLD}"
+export AR = "${BUILD_AR}"
+export AS = "${BUILD_AS}"
+export RANLIB = "${BUILD_RANLIB}"
+export STRIP = "${BUILD_STRIP}"
+export NM = "${BUILD_NM}"
+
inherit nopackages