diff options
Diffstat (limited to 'meta/packages/gcc')
| -rw-r--r-- | meta/packages/gcc/gcc3-build-cross.inc | 13 |
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 @@ | |||
| 1 | USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibc", "no", "", d )}' | 1 | USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibc", "no", "", d )}' |
| 2 | 2 | ||
| 3 | EXTRA_OECONF_PATHS = "--with-local-prefix=${STAGING_DIR}/${TARGET_SYS} \ | 3 | EXTRA_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 | ||
| 6 | do_configure_prepend () { | 8 | do_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 | ||
