diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2009-09-17 01:06:30 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-09-17 22:25:24 +0100 |
commit | 9174f712c624cb385d6cf9493950956533211fe5 (patch) | |
tree | a35316ad04518f688e0ade6ec4c988f3772b6f83 /meta/packages | |
parent | 192709ca26dde9653f45b5fae4d91362522c9d93 (diff) | |
download | poky-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.inc | 13 |
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 | ||
7 | EXTRA_OECONF_PATHS = "--with-local-prefix=${STAGING_DIR_TARGET}${target_prefix} \ | 7 | EXTRA_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} | |||
16 | export AR_FOR_TARGET = "${CROSS_DIR}/${TARGET_SYS}/bin/ar" | 17 | export AR_FOR_TARGET = "${CROSS_DIR}/${TARGET_SYS}/bin/ar" |
17 | export AS_FOR_TARGET = "${CROSS_DIR}/${TARGET_SYS}/bin/as" | 18 | export AS_FOR_TARGET = "${CROSS_DIR}/${TARGET_SYS}/bin/as" |
18 | export DLLTOOL_FOR_TARGET = "${CROSS_DIR}/${TARGET_SYS}/bin/dlltool" | 19 | export DLLTOOL_FOR_TARGET = "${CROSS_DIR}/${TARGET_SYS}/bin/dlltool" |
19 | export LD_FOR_TARGET = "${CROSS_DIR}/${TARGET_SYS}/bin/ld" | 20 | export CC_FOR_TARGET = "${TARGET_SYS}-gcc" |
21 | export CXX_FOR_TARGET = "${TARGET_SYS}-g++" | ||
22 | export LD_FOR_TARGET = "${TARGET_SYS}-ld" | ||
20 | export LIPO_FOR_TARGET = "${CROSS_DIR}/${TARGET_SYS}/bin/lipo" | 23 | export LIPO_FOR_TARGET = "${CROSS_DIR}/${TARGET_SYS}/bin/lipo" |
21 | export NM_FOR_TARGET = "${CROSS_DIR}/${TARGET_SYS}/bin/nm" | 24 | export NM_FOR_TARGET = "${CROSS_DIR}/${TARGET_SYS}/bin/nm" |
22 | export OBJDUMP_FOR_TARGET = "${CROSS_DIR}/${TARGET_SYS}/bin/objdump" | 25 | export OBJDUMP_FOR_TARGET = "${CROSS_DIR}/${TARGET_SYS}/bin/objdump" |
@@ -41,11 +44,5 @@ do_configure () { | |||
41 | } | 44 | } |
42 | 45 | ||
43 | do_compile () { | 46 | do_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 | } |