summaryrefslogtreecommitdiff
path: root/scripts/build/cc_gcc.sh
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-01-16 22:15:16 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-01-16 22:15:16 (GMT)
commitd257047760f00e02590f4e01c4640895d1c99bc4 (patch)
treeb0040b2b76528ebdf16b101c1d643c6b13d151c2 /scripts/build/cc_gcc.sh
parent7a5dafbdc802b2f329633a52164fea7a938d0f19 (diff)
Move improperly installed gcc libraries to the sysroot.
Remove a huge comment that itself says it should have been deleted ages ago.
Diffstat (limited to 'scripts/build/cc_gcc.sh')
-rw-r--r--scripts/build/cc_gcc.sh23
1 files changed, 5 insertions, 18 deletions
diff --git a/scripts/build/cc_gcc.sh b/scripts/build/cc_gcc.sh
index 08f320b..0712394 100644
--- a/scripts/build/cc_gcc.sh
+++ b/scripts/build/cc_gcc.sh
@@ -278,27 +278,14 @@ do_cc() {
CT_DoLog EXTRA "Installing final compiler"
make install 2>&1 |CT_DoLog ALL
- # FIXME: shouldn't people who want this just --disable-multilib in final gcc
- # and be done with it?
- # This code should probably be deleted, it was written long ago and hasn't
- # been tested in ages.
- # kludge: If the chip does not have a floating point unit
- # (i.e. if GLIBC_EXTRA_CONFIG contains --without-fp),
- # and there are shared libraries in /lib/nof, copy them to /lib
- # so they get used by default.
- # FIXME: only rs6000/powerpc seem to use nof. See MULTILIB_DIRNAMES
- # in $GCC_DIR/gcc/config/$TARGET/* to see what your arch calls it.
- #case "${CT_LIBC_EXTRA_CONFIG}" in
- # *--without-fp*)
- # if test -d "${CT_SYSROOT_DIR}/lib/nof"; then
- # cp -af "${CT_SYSROOT_DIR}/lib/nof/"*.so* "${CT_SYSROOT_DIR}/lib" || true
- # fi
- # ;;
- #esac
-
# Create a symlink ${CT_TARGET}-cc to ${CT_TARGET}-gcc to always be able
# to call the C compiler with the same, somewhat canonical name.
ln "${CT_PREFIX_DIR}/bin/${CT_TARGET}"-{g,}cc
+ # gcc installs stuff in prefix/target/lib, when it would make better sense
+ # to install that into sysroot/usr/lib
+ CT_DoLog EXTRA "Moving improperly installed gcc libs to sysroot"
+ ( cd "${CT_PREFIX_DIR}/${CT_TARGET}/lib"; tar cf - . ) | ( cd "${CT_SYSROOT_DIR}/usr/lib"; tar xfv - )
+
CT_EndStep
}