[oe-commits] [openembedded-core] 04/40: cross: export CC family from BUILD_* for cross compilers
git at git.openembedded.org
git at git.openembedded.org
Tue Sep 13 14:19:55 UTC 2016
rpurdie pushed a commit to branch master-next
in repository openembedded-core.
commit 110cc22614f92e848bbba9ecaa5e6f089f9a2749
Author: Jérémy Rosen <jeremy.rosen at smile.fr>
AuthorDate: Wed Sep 7 11:08:42 2016 +0200
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 at smile.fr>
Signed-off-by: Ross Burton <ross.burton at intel.com>
---
meta/classes/cross.bbclass | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/meta/classes/cross.bbclass b/meta/classes/cross.bbclass
index 81d1c9d..8d1e779 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
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list