When building with a compiler which is not gcc the gcc-croos will still use the $CC and $CXX variables
These variables are not set properly to BUILD_CC and BUILD_CXX by the recipe. This is problematic now for jethro because gcc-6 is the default compiler for some distros (debian testing) which can't build jethro anymore Signed-off-by: Jérémy Rosen <[email protected]> --- meta/recipes-devtools/gcc/gcc-cross.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/meta/recipes-devtools/gcc/gcc-cross.inc b/meta/recipes-devtools/gcc/gcc-cross.inc index aa10633..9a2e06f 100644 --- a/meta/recipes-devtools/gcc/gcc-cross.inc +++ b/meta/recipes-devtools/gcc/gcc-cross.inc @@ -36,8 +36,14 @@ EXTRA_OECONF_PATHS = "\ ARCH_FLAGS_FOR_TARGET += "-isystem${STAGING_DIR_TARGET}${target_includedir}" +do_configure_prepend () { + export CC="${BUILD_CC}" + export CXX="${BUILD_CXX}" +} + do_compile () { export CC="${BUILD_CC}" + export CXX="${BUILD_CXX}" export AR_FOR_TARGET="${TARGET_SYS}-ar" export RANLIB_FOR_TARGET="${TARGET_SYS}-ranlib" export LD_FOR_TARGET="${TARGET_SYS}-ld" -- 2.8.1 -- _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-devel
