diff options
Diffstat (limited to 'gcc/gcc-uclibc-cross_3.3.2.oe')
-rw-r--r-- | gcc/gcc-uclibc-cross_3.3.2.oe | 33 |
1 files changed, 22 insertions, 11 deletions
diff --git a/gcc/gcc-uclibc-cross_3.3.2.oe b/gcc/gcc-uclibc-cross_3.3.2.oe index 2c215c380d..1ba6237a66 100644 --- a/gcc/gcc-uclibc-cross_3.3.2.oe +++ b/gcc/gcc-uclibc-cross_3.3.2.oe @@ -1,14 +1,12 @@ inherit cross include gcc-uclibc_${PV}.oe -DEPENDS := virtual/${TARGET_PREFIX}binutils \ - virtual/uclibc virtual/uclibc-headers patcher -PROVIDES := virtual/${TARGET_PREFIX}gcc \ - virtual/${TARGET_PREFIX}g++ +DEPENDS := virtual/${TARGET_PREFIX}binutils uclibc patcher +PROVIDES := virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}g++ PACKAGES = -EXTRA_OECONF := --with-local-prefix=${CROSS_DIR}/usr/local \ +EXTRA_OECONF := --with-local-prefix=${CROSS_DIR}/local \ --with-gxx-include-dir=${CROSS_DIR}/${TARGET_SYS}/include/c++ \ --enable-target-optspace \ --disable-nls \ @@ -43,20 +41,33 @@ do_compile_prepend () { } do_stage_append () { -# # Cleanup after gcc's --program-prefix failing.. -# ( cd ${CROSS_DIR}/bin ; for p in ${TARGET_SYS}-* ; do -# mv $p `echo $p | sed -e s,${TARGET_SYS},${TARGET_ARCH}-uclibc,` -# done ) - - rm -f ${CROSS_DIR}/bin/gccbug ${CROSS_DIR}/bin/gcov for d in info man share/doc share/locale ; do rm -rf ${CROSS_DIR}/$d done + # These aren't useful on the cross toolchain + rm -f ${CROSS_DIR}/bin/*gcov + rm -f ${CROSS_DIR}/bin/*gccbug + # Fix a few include links so cross builds are happier if [ ! -e ${STAGING_DIR}/target/include/c++ ]; then mkdir -p ${STAGING_DIR}/target/include ln -s ${CROSS_DIR}/${TARGET_SYS}/include/c++ \ ${STAGING_DIR}/target/include/ fi + + # We use libiberty from binutils + rm -f ${CROSS_DIR}/lib/libiberty.a + + # We probably don't need this + rmdir ${CROSS_DIR}/include || : + + # We don't really need to keep this around + rm -rf ${CROSS_DIR}/share +} + +# Kill the install so we get no packages (we're the cross compiler) +do_install () { + : } + |