From: Richard Purdie Date: Thu, 17 Sep 2009 00:06:30 +0000 (+0100) Subject: gcc-configure-sdk: Tweak compiler options for working canadian cross compiles X-Git-Tag: 2011-1~6969 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=9174f712c624cb385d6cf9493950956533211fe5;p=openembedded-core.git gcc-configure-sdk: Tweak compiler options for working canadian cross compiles Signed-off-by: Richard Purdie --- diff --git a/meta/packages/gcc/gcc-configure-sdk.inc b/meta/packages/gcc/gcc-configure-sdk.inc index c04b93e568..6738496219 100644 --- a/meta/packages/gcc/gcc-configure-sdk.inc +++ b/meta/packages/gcc/gcc-configure-sdk.inc @@ -6,6 +6,7 @@ USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibcgnueabi", "no", "", d EXTRA_OECONF_PATHS = "--with-local-prefix=${STAGING_DIR_TARGET}${target_prefix} \ --with-gxx-include-dir=${prefix}/${TARGET_SYS}${target_includedir}/c++/${BINV}/ \ + --with-build-time-tools=${CROSS_DIR}/${TARGET_SYS}/bin \ --with-sysroot=${prefix}/${TARGET_SYS} \ --with-build-sysroot=${STAGING_DIR_TARGET}" @@ -16,7 +17,9 @@ EXTRA_OECONF_PATHS = "--with-local-prefix=${STAGING_DIR_TARGET}${target_prefix} export AR_FOR_TARGET = "${CROSS_DIR}/${TARGET_SYS}/bin/ar" export AS_FOR_TARGET = "${CROSS_DIR}/${TARGET_SYS}/bin/as" export DLLTOOL_FOR_TARGET = "${CROSS_DIR}/${TARGET_SYS}/bin/dlltool" -export LD_FOR_TARGET = "${CROSS_DIR}/${TARGET_SYS}/bin/ld" +export CC_FOR_TARGET = "${TARGET_SYS}-gcc" +export CXX_FOR_TARGET = "${TARGET_SYS}-g++" +export LD_FOR_TARGET = "${TARGET_SYS}-ld" export LIPO_FOR_TARGET = "${CROSS_DIR}/${TARGET_SYS}/bin/lipo" export NM_FOR_TARGET = "${CROSS_DIR}/${TARGET_SYS}/bin/nm" export OBJDUMP_FOR_TARGET = "${CROSS_DIR}/${TARGET_SYS}/bin/objdump" @@ -41,11 +44,5 @@ do_configure () { } do_compile () { - export CC="${BUILD_CC}" - export AR_FOR_TARGET="${TARGET_SYS}-ar" - export RANLIB_FOR_TARGET="${TARGET_SYS}-ranlib" - export LD_FOR_TARGET="${TARGET_SYS}-ld" - export NM_FOR_TARGET="${TARGET_SYS}-nm" - export CC_FOR_TARGET="${CCACHE} ${TARGET_SYS}-gcc ${TARGET_CC_ARCH}" - base_do_compile + oe_runmake }