From: Jérémy Rosen Date: Wed, 7 Sep 2016 09:08:42 +0000 (+0200) Subject: cross: export CC family from BUILD_* for cross compilers X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ddc7bd795b02da614b446285dc3680f94ed268aa;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- diff --git a/meta/classes/cross.bbclass b/meta/classes/cross.bbclass index 81d1c9d8555..8d1e7795aa8 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