diff options
author | Gerald Britton <gbritton@doomcom.org> | 2003-09-28 23:34:12 +0000 |
---|---|---|
committer | Gerald Britton <gbritton@doomcom.org> | 2003-09-28 23:34:12 +0000 |
commit | 99d28f01bfe62d99542159378744bfe08f866dc4 (patch) | |
tree | 5e0f3f998f9411637a5acc132daae4b7d5cb6904 /uclibc-gcc/uclibc-gcc-cross-3.3.1.oe | |
parent | f1326d679eb0e0f2ed52b49c7e36950db9b6694c (diff) |
uclibc toolchain build updates
BKrev: 3f776ff4Ke3EKFXIlHJTaSTFYTBOrQ
Diffstat (limited to 'uclibc-gcc/uclibc-gcc-cross-3.3.1.oe')
-rw-r--r-- | uclibc-gcc/uclibc-gcc-cross-3.3.1.oe | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/uclibc-gcc/uclibc-gcc-cross-3.3.1.oe b/uclibc-gcc/uclibc-gcc-cross-3.3.1.oe index e69de29bb2..5f4e3f3d8c 100644 --- a/uclibc-gcc/uclibc-gcc-cross-3.3.1.oe +++ b/uclibc-gcc/uclibc-gcc-cross-3.3.1.oe @@ -0,0 +1,68 @@ +inherit cross +include uclibc-gcc-${PV}.oe +PN := ${PN}-cross + +DEPENDS := virtual/${TARGET_SYS}-binutils \ + virtual/uclibc virtual/uclibc-headers patcher +PROVIDES := virtual/${TARGET_SYS}-gcc \ + virtual/${TARGET_SYS}-g++ + +PACKAGES = + +EXTRA_OECONF := --with-local-prefix=${CROSS_DIR}/usr/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-multilib \ + --program-prefix=${TARGET_SYS}- + +prefix:=${CROSS_DIR} +exec_prefix:=${CROSS_DIR} +sysconfdir=${CROSS_DIR}/etc +localstatedir=${CROSS_DIR}/var/lib + +export CPPFLAGS = +export CXXFLAGS = +export CFLAGS = +export LDFLAGS = + +do_configure_prepend () { + export CC="${BUILD_CC}" + export AR="${TARGET_SYS}-ar" + export RANLIB="${TARGET_SYS}-ranlib" + export LD="${TARGET_SYS}-ld" + export NM="${TARGET_SYS}-nm" +} + +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() { + cd ${B} + make install + +# # 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 +} + +do_install() { + true +} + |