diff options
author | Marcin Juszkiewicz <hrw@openedhand.com> | 2007-04-20 15:08:02 +0000 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@openedhand.com> | 2007-04-20 15:08:02 +0000 |
commit | 8c878bebdc8d71e04a420ccad573807e55295b2d (patch) | |
tree | 192cacdc01802c1661c9d8c1ebd55507e62ce91f /meta/packages/gcc/gcc4-build-sdk.inc | |
parent | 67e6cc2f64f8682b766b586acc9b39ed9ea20633 (diff) | |
download | poky-8c878bebdc8d71e04a420ccad573807e55295b2d.tar.gz |
gcc-cross-sdk: added 4.1.1 (builds ok on x86_32)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1527 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/gcc/gcc4-build-sdk.inc')
-rw-r--r-- | meta/packages/gcc/gcc4-build-sdk.inc | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/meta/packages/gcc/gcc4-build-sdk.inc b/meta/packages/gcc/gcc4-build-sdk.inc new file mode 100644 index 0000000000..86aa566e5c --- /dev/null +++ b/meta/packages/gcc/gcc4-build-sdk.inc | |||
@@ -0,0 +1,25 @@ | |||
1 | USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibc", "no", "", d )}' | ||
2 | |||
3 | STAGING_TARGET_INCDIR = "${STAGING_DIR}/${TARGET_SYS}/include" | ||
4 | STAGING_TARGET_LIBDIR = "${STAGING_DIR}/${TARGET_SYS}/lib" | ||
5 | |||
6 | do_configure () { | ||
7 | (cd ${S} && gnu-configize) || die "failure running gnu-configize" | ||
8 | (cd ${S}/libstdc++-v3 && autoreconf) | ||
9 | oe_runconf | ||
10 | mkdir -p gcc | ||
11 | ln -sf ${CROSS_DIR}/bin/${TARGET_PREFIX}as gcc/as | ||
12 | ln -sf ${CROSS_DIR}/bin/${TARGET_PREFIX}ld gcc/ld | ||
13 | ln -sf ${STAGING_TARGET_INCDIR}/* ${S}/include | ||
14 | ln -sf ${STAGING_TARGET_LIBDIR}/crt*.o gcc/ | ||
15 | } | ||
16 | |||
17 | do_compile () { | ||
18 | export CC="${BUILD_CC}" | ||
19 | export AR_FOR_TARGET="${TARGET_SYS}-ar" | ||
20 | export RANLIB_FOR_TARGET="${TARGET_SYS}-ranlib" | ||
21 | export LD_FOR_TARGET="${TARGET_SYS}-ld" | ||
22 | export NM_FOR_TARGET="${TARGET_SYS}-nm" | ||
23 | export CC_FOR_TARGET="${CCACHE} ${TARGET_SYS}-gcc ${TARGET_CC_ARCH}" | ||
24 | oe_runmake CFLAGS_FOR_TARGET="-I${STAGING_TARGET_INCDIR}" | ||
25 | } | ||