From: Holger Freyther Date: Sat, 13 May 2006 23:10:32 +0000 (+0000) Subject: classes/native.bbclass: X-Git-Tag: Release-2010-05/1~9453^2~1703^2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=256c08151ca26ef134d9ffc6919ba0b2bbdb4e62;p=openembedded.git classes/native.bbclass: Change the CC, CXX, CPP... variables back to gcc. Someone could have changed them in the bitbake.conf to use a specific version of any of these tools. e.g. when using a provided toolchain instead of compiling one with OpenEmbedded. --- diff --git a/classes/native.bbclass b/classes/native.bbclass index 011e48cf62..04ff7d92d1 100644 --- a/classes/native.bbclass +++ b/classes/native.bbclass @@ -36,6 +36,20 @@ CXXFLAGS = "${BUILD_CFLAGS}" LDFLAGS = "${BUILD_LDFLAGS}" LDFLAGS_build-darwin = "-L${STAGING_DIR}/${BUILD_SYS}/lib " + +# set the compiler as well. It could have been set to something else +export CC = "${CCACHE}${HOST_PREFIX}gcc ${HOST_CC_ARCH}" +export CXX = "${CCACHE}${HOST_PREFIX}g++ ${HOST_CC_ARCH}" +export F77 = "${CCACHE}${HOST_PREFIX}g77 ${HOST_CC_ARCH}" +export CPP = "${HOST_PREFIX}gcc -E" +export LD = "${HOST_PREFIX}ld" +export CCLD = "${CC}" +export AR = "${HOST_PREFIX}ar" +export AS = "${HOST_PREFIX}as" +export RANLIB = "${HOST_PREFIX}ranlib" +export STRIP = "${HOST_PREFIX}strip" + + # Path prefixes base_prefix = "${exec_prefix}" prefix = "${STAGING_DIR}"