diff options
author | Chris Larson <clarson@kergoth.com> | 2004-03-07 01:00:54 +0000 |
---|---|---|
committer | Chris Larson <clarson@kergoth.com> | 2004-03-07 01:00:54 +0000 |
commit | 91a5f42c665a6ab31d2963e127c75c615ced04a3 (patch) | |
tree | e434969d15abb5cfa44bc022220b32d890612b8f /gcc/gcc-uclibc-cross_3.3.3.oe | |
parent | d7e99e1cb12da3703beb3dd890070213bb7bee4b (diff) |
Gcc build fixups - kill a couple patches, and fix the --disable/--enable of threads in the uclibc ones.
BKrev: 404a744678juSNZYyPpYtlUKf2zjaQ
Diffstat (limited to 'gcc/gcc-uclibc-cross_3.3.3.oe')
-rw-r--r-- | gcc/gcc-uclibc-cross_3.3.3.oe | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/gcc/gcc-uclibc-cross_3.3.3.oe b/gcc/gcc-uclibc-cross_3.3.3.oe index e69de29bb2..e7d8b4c493 100644 --- a/gcc/gcc-uclibc-cross_3.3.3.oe +++ b/gcc/gcc-uclibc-cross_3.3.3.oe @@ -0,0 +1,74 @@ +inherit cross +include gcc-uclibc_${PV}.oe + +DEPENDS := virtual/${TARGET_PREFIX}binutils uclibc patcher-native +PROVIDES := virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}g++ + +PACKAGES = + +EXTRA_OECONF := --with-local-prefix=${CROSS_DIR}/local \ + --with-gxx-include-dir=${CROSS_DIR}/${TARGET_SYS}/include/c++ \ + --enable-target-optspace \ + --disable-nls \ + --with-gnu-ld \ + --disable-__cxa_atexit \ + --enable-languages=c,c++ \ + --enable-shared \ + --enable-threads \ + --enable-multilib \ + --program-prefix=${TARGET_PREFIX} + +export CPPFLAGS = +export CXXFLAGS = +export CFLAGS = +export LDFLAGS = + +do_configure () { + export CC="${BUILD_CC}" + export AR="${TARGET_SYS}-ar" + export RANLIB="${TARGET_SYS}-ranlib" + export LD="${TARGET_SYS}-ld" + export NM="${TARGET_SYS}-nm" + oe_runconf +} + +do_compile_prepend () { + 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" +} + +do_stage_append () { + 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 () { + : +} + |