summaryrefslogtreecommitdiffstats
path: root/meta/packages
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2009-09-17 01:06:30 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2009-09-17 22:25:24 +0100
commit9174f712c624cb385d6cf9493950956533211fe5 (patch)
treea35316ad04518f688e0ade6ec4c988f3772b6f83 /meta/packages
parent192709ca26dde9653f45b5fae4d91362522c9d93 (diff)
downloadpoky-9174f712c624cb385d6cf9493950956533211fe5.tar.gz
gcc-configure-sdk: Tweak compiler options for working canadian cross compiles
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/packages')
-rw-r--r--meta/packages/gcc/gcc-configure-sdk.inc13
1 files changed, 5 insertions, 8 deletions
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
6 6
7EXTRA_OECONF_PATHS = "--with-local-prefix=${STAGING_DIR_TARGET}${target_prefix} \ 7EXTRA_OECONF_PATHS = "--with-local-prefix=${STAGING_DIR_TARGET}${target_prefix} \
8 --with-gxx-include-dir=${prefix}/${TARGET_SYS}${target_includedir}/c++/${BINV}/ \ 8 --with-gxx-include-dir=${prefix}/${TARGET_SYS}${target_includedir}/c++/${BINV}/ \
9 --with-build-time-tools=${CROSS_DIR}/${TARGET_SYS}/bin \
9 --with-sysroot=${prefix}/${TARGET_SYS} \ 10 --with-sysroot=${prefix}/${TARGET_SYS} \
10 --with-build-sysroot=${STAGING_DIR_TARGET}" 11 --with-build-sysroot=${STAGING_DIR_TARGET}"
11 12
@@ -16,7 +17,9 @@ EXTRA_OECONF_PATHS = "--with-local-prefix=${STAGING_DIR_TARGET}${target_prefix}
16export AR_FOR_TARGET = "${CROSS_DIR}/${TARGET_SYS}/bin/ar" 17export AR_FOR_TARGET = "${CROSS_DIR}/${TARGET_SYS}/bin/ar"
17export AS_FOR_TARGET = "${CROSS_DIR}/${TARGET_SYS}/bin/as" 18export AS_FOR_TARGET = "${CROSS_DIR}/${TARGET_SYS}/bin/as"
18export DLLTOOL_FOR_TARGET = "${CROSS_DIR}/${TARGET_SYS}/bin/dlltool" 19export DLLTOOL_FOR_TARGET = "${CROSS_DIR}/${TARGET_SYS}/bin/dlltool"
19export LD_FOR_TARGET = "${CROSS_DIR}/${TARGET_SYS}/bin/ld" 20export CC_FOR_TARGET = "${TARGET_SYS}-gcc"
21export CXX_FOR_TARGET = "${TARGET_SYS}-g++"
22export LD_FOR_TARGET = "${TARGET_SYS}-ld"
20export LIPO_FOR_TARGET = "${CROSS_DIR}/${TARGET_SYS}/bin/lipo" 23export LIPO_FOR_TARGET = "${CROSS_DIR}/${TARGET_SYS}/bin/lipo"
21export NM_FOR_TARGET = "${CROSS_DIR}/${TARGET_SYS}/bin/nm" 24export NM_FOR_TARGET = "${CROSS_DIR}/${TARGET_SYS}/bin/nm"
22export OBJDUMP_FOR_TARGET = "${CROSS_DIR}/${TARGET_SYS}/bin/objdump" 25export OBJDUMP_FOR_TARGET = "${CROSS_DIR}/${TARGET_SYS}/bin/objdump"
@@ -41,11 +44,5 @@ do_configure () {
41} 44}
42 45
43do_compile () { 46do_compile () {
44 export CC="${BUILD_CC}" 47 oe_runmake
45 export AR_FOR_TARGET="${TARGET_SYS}-ar"
46 export RANLIB_FOR_TARGET="${TARGET_SYS}-ranlib"
47 export LD_FOR_TARGET="${TARGET_SYS}-ld"
48 export NM_FOR_TARGET="${TARGET_SYS}-nm"
49 export CC_FOR_TARGET="${CCACHE} ${TARGET_SYS}-gcc ${TARGET_CC_ARCH}"
50 base_do_compile
51} 48}