From 24ef72d610505e968d432d78ae6bed34bf480a36 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 1 Apr 2010 12:07:33 +0100 Subject: gcc-configure-cross.inc: The install function is used, stage is no longer required Signed-off-by: Richard Purdie --- recipes/gcc/gcc-configure-cross.inc | 44 ------------------------------------- 1 file changed, 44 deletions(-) (limited to 'recipes/gcc/gcc-configure-cross.inc') diff --git a/recipes/gcc/gcc-configure-cross.inc b/recipes/gcc/gcc-configure-cross.inc index 7dde9de064..8b97b097ef 100644 --- a/recipes/gcc/gcc-configure-cross.inc +++ b/recipes/gcc/gcc-configure-cross.inc @@ -22,47 +22,3 @@ do_configure_prepend () { LIBGCCS_VAR = "-lgcc_s" LIBGCCS_VAR_avr32 = "" - -do_stage_append () { - for d in info man share/doc share/locale ; do - rm -rf ${CROSS_DIR}/$d - done - - # Fix a few include links so cross builds are happier - if [ ! -e ${STAGING_INCDIR}/c++ ]; then - mkdir -p ${STAGING_INCDIR} - mkdir -p ${CROSS_DIR}/${TARGET_SYS}/include/c++ - ln -sf ${CROSS_DIR}/${TARGET_SYS}/include/c++ \ - ${STAGING_INCDIR}/ - fi - - # We probably don't need these - rmdir ${CROSS_DIR}/include || : - - # We don't really need to keep this around - # rm -rf ${CROSS_DIR}/share but leave java there - for d in share/man share/info; - do - rm -rf ${CROSS_DIR}/$d - done - - #fix up libsupc++ and libstdc++ la files - for d in lib lib/nof; do - sed -i "s|dependency_libs\s*=\s*.*|dependency_libs='-L${CROSS_DIR}/${TARGET_SYS}/$d ${LIBGCCS_VAR} -lc -lm '|" ${CROSS_DIR}/${TARGET_SYS}/$d/libsupc++.la || true - sed -i "s|dependency_libs\s*=\s*.*|dependency_libs='-L${CROSS_DIR}/${TARGET_SYS}/$d ${LIBGCCS_VAR} -lc -lm '|" ${CROSS_DIR}/${TARGET_SYS}/$d/libstdc++.la || true - done - - # Link gfortran to g77 to satisfy not-so-smart configure or hard coded g77 - # gfortran is fully backwards compatible. This is a safe and practical solution. - if [ -f ${CROSS_DIR}/bin/${TARGET_PREFIX}gfortran ]; then - currdir="$PWD" - cd ${CROSS_DIR}/bin/ - ln -sf ${TARGET_PREFIX}gfortran ${TARGET_PREFIX}g77 || true - if [ -d ${CROSS_DIR}/${TARGET_SYS}/bin/ ] ; then - cd ${CROSS_DIR}/${TARGET_SYS}/bin/ - ln -sf gfortran g77 || true - fi - cd $currdir - fi -} - -- cgit 1.2.3-korg