scripts/build/cc_gcc.sh
changeset 747 d3e603e7c17c
parent 728 8e80350322e5
child 757 90e887b06da3
     1.1 --- a/scripts/build/cc_gcc.sh	Sat Jul 26 12:10:54 2008 +0000
     1.2 +++ b/scripts/build/cc_gcc.sh	Mon Jul 28 21:32:33 2008 +0000
     1.3 @@ -281,26 +281,6 @@
     1.4          CT_DoExecLog ALL make ${PARALLELMFLAGS} all-build-libiberty
     1.5      fi
     1.6  
     1.7 -    # Idea from <cort.dougan at gmail.com>:
     1.8 -    # Fix lib/lib64 confusion for GCC 3.3.3 on PowerPC64 and x86_64.
     1.9 -    # GCC 3.4.0 and up don't suffer from this confusion, and don't need this
    1.10 -    # kludge.
    1.11 -    # FIXME: we should patch gcc's source rather than uglify crosstool.sh.
    1.12 -    # FIXME: is this needed for gcc-3.3.[56]?
    1.13 -    case "${CT_CC_FILE}" in
    1.14 -      gcc-3.3.[34])
    1.15 -        case "${CT_TARGET}" in
    1.16 -          powerpc64-unknown-linux-gnu|x86_64-unknown-linux-gnu)
    1.17 -            for d in $(find "${CT_SYSROOT_DIR}" -name lib -type d -empty); do
    1.18 -              if [ -d $(dirname "${d}")/lib64 ] ; then
    1.19 -                rm -rf "${d}"
    1.20 -                ln -s $(dirname "${d}")/lib64 "${d}"
    1.21 -              fi
    1.22 -            done ;;
    1.23 -          *) ;;
    1.24 -        esac ;;
    1.25 -    esac
    1.26 -
    1.27      CT_DoLog EXTRA "Building final compiler"
    1.28      CT_DoExecLog ALL make ${PARALLELMFLAGS} all
    1.29  
    1.30 @@ -311,11 +291,5 @@
    1.31      # to call the C compiler with the same, somewhat canonical name.
    1.32      ln -sv "${CT_PREFIX_DIR}/bin/${CT_TARGET}"-{g,}cc 2>&1 |CT_DoLog ALL
    1.33  
    1.34 -    # gcc installs stuff in prefix/target/lib, when it would make better sense
    1.35 -    # to install that into sysroot/usr/lib
    1.36 -    CT_DoLog EXTRA "Moving improperly installed gcc libs to sysroot"
    1.37 -    ( cd "${CT_PREFIX_DIR}/${CT_TARGET}/lib"; tar cf - . ) | ( cd "${CT_SYSROOT_DIR}/usr/lib"; tar xfv - ) |CT_DoLog ALL
    1.38 -    rm -rf "${CT_PREFIX_DIR}/${CT_TARGET}/lib"
    1.39 -
    1.40      CT_EndStep
    1.41  }