summaryrefslogtreecommitdiff
path: root/scripts/build
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-07-27 16:35:37 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-07-27 16:35:37 (GMT)
commit5a28e26b8db485c44e5bf698c7ac3d420ad97ddf (patch)
treea4b55ca0696c2cdc60e92af926ed315077be8e71 /scripts/build
parent8e512f9a95ed6ef31d1b38e5f2f01dc44930a411 (diff)
Fix building x86_64 on x86_64 (and hopefully all other *64 archs on the same *64):
- symlink all lib64/ dirs to the corresponding lib/ dir Also, prevent gcc from installing some of its target libs outside of the sys-root, in the first place. Thanks to Laurent DUFRECHOU for reporting the bug and testing the fix. /trunk/scripts/build/cc_gcc.sh | 26 0 26 0 -------------------------- /trunk/scripts/crosstool.sh | 14 14 0 0 ++++++++++++++ 2 files changed, 14 insertions(+), 26 deletions(-)
Diffstat (limited to 'scripts/build')
-rw-r--r--scripts/build/cc_gcc.sh26
1 files changed, 0 insertions, 26 deletions
diff --git a/scripts/build/cc_gcc.sh b/scripts/build/cc_gcc.sh
index 8139e77..742b804 100644
--- a/scripts/build/cc_gcc.sh
+++ b/scripts/build/cc_gcc.sh
@@ -281,26 +281,6 @@ do_cc() {
CT_DoExecLog ALL make ${PARALLELMFLAGS} all-build-libiberty
fi
- # Idea from <cort.dougan at gmail.com>:
- # Fix lib/lib64 confusion for GCC 3.3.3 on PowerPC64 and x86_64.
- # GCC 3.4.0 and up don't suffer from this confusion, and don't need this
- # kludge.
- # FIXME: we should patch gcc's source rather than uglify crosstool.sh.
- # FIXME: is this needed for gcc-3.3.[56]?
- case "${CT_CC_FILE}" in
- gcc-3.3.[34])
- case "${CT_TARGET}" in
- powerpc64-unknown-linux-gnu|x86_64-unknown-linux-gnu)
- for d in $(find "${CT_SYSROOT_DIR}" -name lib -type d -empty); do
- if [ -d $(dirname "${d}")/lib64 ] ; then
- rm -rf "${d}"
- ln -s $(dirname "${d}")/lib64 "${d}"
- fi
- done ;;
- *) ;;
- esac ;;
- esac
-
CT_DoLog EXTRA "Building final compiler"
CT_DoExecLog ALL make ${PARALLELMFLAGS} all
@@ -311,11 +291,5 @@ do_cc() {
# to call the C compiler with the same, somewhat canonical name.
ln -sv "${CT_PREFIX_DIR}/bin/${CT_TARGET}"-{g,}cc 2>&1 |CT_DoLog ALL
- # 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_DoLog ALL
- rm -rf "${CT_PREFIX_DIR}/${CT_TARGET}/lib"
-
CT_EndStep
}