summaryrefslogtreecommitdiff
path: root/packages/gcc/gcc3-build-sdk.inc
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@rpsys.net>2006-02-14 09:21:05 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-02-14 09:21:05 +0000
commit8761f3cf74f5555413f2d9100b36e78c791bfc1e (patch)
treebaeb8588e9cf908c56394c9ec6fc2a48c6a7c607 /packages/gcc/gcc3-build-sdk.inc
parent865d6f6b46e4f64ca51a4ca055b71d42e543230c (diff)
gcc-cross-sdk: Move common data into sdk .inc files. Add gcc-cross-sdk-3.4.3.
Diffstat (limited to 'packages/gcc/gcc3-build-sdk.inc')
-rw-r--r--packages/gcc/gcc3-build-sdk.inc27
1 files changed, 27 insertions, 0 deletions
diff --git a/packages/gcc/gcc3-build-sdk.inc b/packages/gcc/gcc3-build-sdk.inc
new file mode 100644
index 0000000000..e2ec9565a7
--- /dev/null
+++ b/packages/gcc/gcc3-build-sdk.inc
@@ -0,0 +1,27 @@
+USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibc", "no", "", d )}'
+
+SRC_URI += 'file://sdk-libstdc++-includes.patch;patch=1'
+
+STAGING_TARGET_INCDIR = "${STAGING_DIR}/${TARGET_SYS}/include"
+STAGING_TARGET_LIBDIR = "${STAGING_DIR}/${TARGET_SYS}/lib"
+
+do_configure () {
+ (cd ${S} && gnu-configize) || die "failure running gnu-configize"
+ (cd ${S}/libstdc++-v3 && autoreconf)
+ oe_runconf
+ mkdir -p gcc
+ ln -sf ${CROSS_DIR}/bin/${TARGET_PREFIX}as gcc/as
+ ln -sf ${CROSS_DIR}/bin/${TARGET_PREFIX}ld gcc/ld
+ ln -sf ${STAGING_TARGET_INCDIR}/* ${S}/include
+ ln -sf ${STAGING_TARGET_LIBDIR}/crt*.o gcc/
+}
+
+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}"
+ oe_runmake CFLAGS_FOR_TARGET="-I${STAGING_TARGET_INCDIR}"
+}