Better install the libraries improperly installed by gcc in prefix/target/lib instead of sysroot/usr/lib.

/trunk/scripts/build/cc_gcc.sh |    3     2     1     0 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
This commit is contained in:
Yann E. MORIN" 2008-06-15 20:51:37 +00:00
parent 6cea94c049
commit d48ade3ec8

View File

@ -297,7 +297,8 @@ do_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 - )
( cd "${CT_PREFIX_DIR}/${CT_TARGET}/lib"; tar cf - . ) | ( cd "${CT_SYSROOT_DIR}/usr/lib"; tar xfv - ) |CT_DoLog ALL
rm -rf "${CT_PREFIX_DIR}/${CT_TARGET}/lib"
CT_EndStep
}