summaryrefslogtreecommitdiffstats
path: root/meta/packages/gcc
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2007-11-12 11:25:30 +0000
committerRichard Purdie <richard@openedhand.com>2007-11-12 11:25:30 +0000
commit01d5da72d0bd5038ce4b6a211546a4ca3f8daffd (patch)
treeba1921d2beb66d9da21a5d6183c2c7db2bfc22a7 /meta/packages/gcc
parent8c1871aabfd2b010152886cb5b48a0be84c2dc80 (diff)
downloadpoky-01d5da72d0bd5038ce4b6a211546a4ca3f8daffd.tar.gz
Rearrange staging to match target system layout. This is a major change and will require a full rebuild.
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3123 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/gcc')
-rw-r--r--meta/packages/gcc/gcc3-build-cross.inc13
1 files changed, 4 insertions, 9 deletions
diff --git a/meta/packages/gcc/gcc3-build-cross.inc b/meta/packages/gcc/gcc3-build-cross.inc
index ec285f522b..2b9766975c 100644
--- a/meta/packages/gcc/gcc3-build-cross.inc
+++ b/meta/packages/gcc/gcc3-build-cross.inc
@@ -1,7 +1,9 @@
1USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibc", "no", "", d )}' 1USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibc", "no", "", d )}'
2 2
3EXTRA_OECONF_PATHS = "--with-local-prefix=${STAGING_DIR}/${TARGET_SYS} \ 3EXTRA_OECONF_PATHS = "--with-local-prefix=${STAGING_DIR_TARGET}${layout_prefix} \
4 --with-gxx-include-dir=${STAGING_DIR}/${TARGET_SYS}/include/c++" 4 --with-gxx-include-dir=${STAGING_DIR_TARGET}/${layout_includedir}/c++ \
5 --with-sysroot=${STAGING_DIR_TARGET} \
6 --with-build-sysroot=${STAGING_DIR_TARGET}"
5 7
6do_configure_prepend () { 8do_configure_prepend () {
7 rm -f ${CROSS_DIR}/lib/gcc/${TARGET_SYS}/${BINV}/libgcc_eh.a 9 rm -f ${CROSS_DIR}/lib/gcc/${TARGET_SYS}/${BINV}/libgcc_eh.a
@@ -25,13 +27,6 @@ do_stage_append () {
25 rm -f ${CROSS_DIR}/bin/*gcov 27 rm -f ${CROSS_DIR}/bin/*gcov
26 rm -f ${CROSS_DIR}/bin/*gccbug 28 rm -f ${CROSS_DIR}/bin/*gccbug
27 29
28 # Fix a few include links so cross builds are happier
29 if [ ! -e ${STAGING_INCDIR}/c++ ]; then
30 mkdir -p ${STAGING_INCDIR}
31 ln -sf ${CROSS_DIR}/${TARGET_SYS}/include/c++ \
32 ${STAGING_INCDIR}/
33 fi
34
35 # We use libiberty from binutils 30 # We use libiberty from binutils
36 rm -f ${CROSS_DIR}/lib/libiberty.a 31 rm -f ${CROSS_DIR}/lib/libiberty.a
37 32